MacroRun Instruction
Syntax
MacroRun MacroName$[, Command$]
Group
Description
Plays a macro. Execution continues at the following statement after the macro is complete.
Sandbox
Sandbox mode can block this instruction.
Parameters
| Parameters | Description |
|---|---|
| MacroName$ | Runs the macro named by this string value. |
| Command$ | Passes this string value as the macro Command$ value. |
Example
Sub Main Debug.Print "Before Demo" MacroRun "Demo" Debug.Print "After Demo" End Sub
See also
Command$, MacroCheck, MacroCheckThis, MacroDir$, MacroRunThis, ModuleLoad, ModuleLoadThis