| Excel Link | ![]() |
Syntax
MLGetVar ML_var_name, VBA_var_name
Description
Writes the contents of MATLAB matrix ML_var_name in the Excel VBA variable VBA_var_name. Creates VBA_var_name if it does not exist. Replaces existing data in VBA_var_name. Use MLGetVar only in a macro subroutine, not in a macro function or in a subroutine called by a function.
Example
Sub Fetch() MLGetVar "J", DataJ End Subwrites the contents of MATLAB matrix
J in the VBA variable named DataJ.
See Also
MLPutVar
| MLGetMatrix | MLOpen | ![]() |