MacroCheckThis Function

Syntax

MacroCheckThis(MacroCode$)

Group

Flow Control

Description

Checks 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$ Checks 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