MacroCheckThis Function
Syntax
MacroCheckThis(MacroCode$)
Group
Description
Check the syntax the macro code in MacroCode. The macro code is not executed. Returns an Err object if there is a syntax error, otherwise Nothing is returned.
Parameters |
Description |
Check the macro code in this string value. |
See Also
MacroCheck, MacroRun, MacroRunThis
Example
Sub Main
Dim E As ErrObject
Set E = MacroCheckThis("bad macro")
If Not E Is Nothing Then Debug.Print E.Description
End Sub