MacroCheck Function
SyntaxGroupMacroCheck(MacroName$)
Flow ControlDescription
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.
See Also
Parameters Description MacroName$ Check the macro named by this string value.
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