MLAutoStart

Automatically start MATLAB

Syntax

MLAutoStart(flag)
MLAutoStart flag
out = MLAutoStart(flag)

Description

MLAutoStart(flag) sets automatic startup of the Spreadsheet Link™ EX and MATLAB® software. A change of state takes effect the next time an Excel® session starts. Use this syntax when working directly in a worksheet.

MLAutoStart flag sets automatic startup of the Spreadsheet Link EX and MATLAB software. A change of state takes effect the next time an Excel session starts. Use this syntax in a VBA macro.

out = MLAutoStart(flag) lets you catch errors when executing MLAutoStart in a VBA macro. If MLAutoStart fails, then out is a string containing error code. Otherwise, out is 0.

Input Arguments

flag

Either "yes" or "no".

Specify "yes" to automatically start the Spreadsheet Link EX and MATLAB software every time a Microsoft® Excel session starts. Specify "no" to cancel automatic startup of the Spreadsheet Link EX and MATLAB software.

Default: "yes"

Output Arguments

out

0 if the command succeeded. Otherwise, a string containing error code.

Examples

expand all

Cancel Automatic Startup of Spreadsheet Link EX and MATLAB

Enter this command in a worksheet:

MLAutoStart("no")

Spreadsheet Link EX and MATLAB do not start on subsequent Excel session invocations.

More About

expand all

Tips

  • If Spreadsheet Link EX and MATLAB are running, then MLAutoStart("no") does not stop them.

See Also

| |

Was this topic helpful?