MacroRunThis Instruction

Syntax

MacroRunThis MacroCode$

Group

Flow Control

Description

Plays the macro code in MacroCode. Execution continues at the following statement after the macro code is complete. The macro code can be a single line or a complete macro.

Parameters

Parameters Description
MacroName$ Runs the macro code in this string value.

Example


Sub Main
    Debug.Print "Before Demo"
    MacroRunThis "MsgBox ""Hello"""
    Debug.Print "After Demo"
End Sub

See also

Command$, MacroCheck, MacroCheckThis, MacroDir$, MacroRun, ModuleLoad, ModuleLoadThis