9.0

201
Debug.Print S$
Close
#1
End
Sub
MacroRun Instruction
Syntax
MacroRun MacroName$[, Command$]
Group
Flow Control
Description
Play a macro. Execution will continue at the following statement after the macro has completed.
Parameter Description
MacroName$ Run the macro named by this string value.
Command$ Pass this string value as the macro's Command$ value.
See Also: Command$, MacroDir$, MacroRunThis.
Example
Sub Main
Debug
.Print "Before Demo"
MacroRun "Demo"
Debug
.Print "After Demo"
End
Sub
MacroRunThis Instruction
Syntax
MacroRunThis MacroCode$
Group
Flow Control
Description
Play the macro code. Execution will continue at the following statement after the macro code has completed. The
macro code can be either a single line or a complete macro.
Parameter Description
MacroName$ Run the macro named by this string value.
See Also: Command$, MacroDir$, MacroRun.
Example