MacroCheckThis Function

Syntax
MacroCheckThis(MacroCode$)
Group
Flow Control
Description
Check the syntax the macro/module code in MacroCode. The macro/module code is not executed. Returns an Err object if there is a syntax error, otherwise Nothing is returned.
Parameters Description
MacroName$ Check the macro code in this string value.
See Also
MacroCheck, MacroRun, MacroRunThis, ModuleLoad, ModuleLoadThis

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