Syntax 

MacroRun MacroName$[, Command$]


Group 

Flow Control 


Description 

Play a macro. Execution will continue at the following statement after the macro has completed.


Parameters

Description

MacroName$ 

Run the macro named by this string value.

Command$ 

Pass this string value as the macro's Command$ value.


Relative Paths 

A relative macro name is a relative to the current drive's current directory. If the macro name is a special name (starts with '*') then its path is relative to the macro that is executing.


See Also 

Command$, MacroCheck, MacroCheckThis, MacroDir$, MacroRunThis


Example

Sub Main

    Debug.Print "Before Demo"

    MacroRun "Demo"

    Debug.Print "After Demo"

End Sub