MATLAB Excel Builder    

Programming with Excel Builder Components


Overview

Each MATLAB Excel Builder component is built as a stand-alone COM object. You access a component from Microsoft Excel through Visual Basic for Applications (VBA). This section provides general information on how to integrate MATLAB Excel Builder components into Excel using the VBA programming environment. It assumes that you have a working knowledge of VBA and is not intended to be a discussion on how to program in Visual Basic. Refer to the VBA documentation provided with Excel for general programming information.

You can easily integrate MATLAB Excel Builder components into a VBA project by creating a simple code module with functions and/or subroutines that load the necessary components, call methods as needed, and process any errors. In general, you need to address seven items in any code written to use MATLAB Excel Builder components:


  Component Information When to Use a Formula Function or a Subroutine