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

Parameters Description
MacroName$ Check the macro code in this string value.

Example


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

See also

MacroCheck, MacroRun, MacroRunThis, ModuleLoad, ModuleLoadThis