Main Content

ExcelAdd-Ins

创造Microsoft®Excel®add-ins from MATLAB®functions on Windows®systems

MATLAB Compiler™enables you to package MATLAB programs into add-ins for use withMicrosoft Excel. Excel add-ins allow users to interact with spreadsheet data, display MATLAB figures, open dialog boxes, and more.

To deploy Excel add-ins, you install the add-in andMATLAB Runtimeon the target machine. After installation, you can:

  • Invoke add-in functions directly in the form of Excel custom functions. For an example, seeAssign Multiple MATLAB Functions to Excel Class.

  • Integrate add-in functions into Excel macros using the Function Wizard. Macros allow you to specify input and output cells, handle multiple outputs, and set additional run-time options. For an example on using the Function Wizard, see创造Macro Using Multiple MATLAB Functions.

  • Integrate add-in functions into Excel macros using custom Visual Basic®for Applications (VBA) code. For VBA programming techniques, see使用VBA集成组件.

Functions

compiler.build.excelAddIn 创造MicrosoftExceladd-in
compiler.build.exceladdinoptions Options for buildingExceladd-ins
compiler.package.installer 创造an installer for files generated byMATLABCompiler
compiler.package.InstallerOptions Options for creatingMATLABCompilerpackage installers

Topics

Requirements and Highlights

创造and Integrate Add-Ins

Use Custom Functions inExcel

创造Macros Using Function Wizard

创造Macros Using VBA

Manage Data Exchange

Troubleshooting