MacroCheck Function

Syntax
MacroCheck(MacroName$)
Group
Flow Control
Description
Check the syntax of a macro/module. Does not execute the macro/module. Returns an Err object if there is a syntax error, otherwise Nothing is returned.
Sandbox
Sandbox mode may block this function.
Parameters Description
MacroName$ Check the macro named by this string value.
See Also
MacroCheckThis, MacroRun, MacroRunThis, ModuleLoad, ModuleLoadThis

Sub Main
    Dim E As ErrObject
    Set E = MacroCheck("Demo")
    If Not E Is Nothing Then Debug.Print E.Description
End Sub