Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

MLAutoStart

Automatically start MATLAB

Syntax

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

Description

MLAutoStart(flag) sets automatic startup of the Spreadsheet Link™ 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 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 and MATLAB software every time a Microsoft® Excel session starts. Specify "no" to cancel automatic startup of the Spreadsheet Link and MATLAB software.

Default: "yes"

Output Arguments

out

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

Examples

collapse all

Enter this command in a worksheet:

MLAutoStart("no")

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

More About

collapse all

Tips

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

See Also

| |

Introduced before R2006a

Was this topic helpful?