MacroCheckThis Function
SyntaxGroupMacroCheckThis(MacroCode$)
Flow ControlDescription
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.
See Also
Parameters Description MacroName$ Check the macro code in this string value.
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