MacroCheck Function
Syntax
MacroCheck(MacroName$)
Group
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
Parameters | Description |
---|---|
MacroName$ | Check the macro named by this string value. |
Example
Sub Main Dim E As ErrObject Set E = MacroCheck("Demo") If Not E Is Nothing Then Debug.Print E.Description End Sub
See also
MacroCheckThis, MacroRun, MacroRunThis, ModuleLoad, ModuleLoadThis