MacroCheck Function
Syntax
MacroCheck(MacroName$)
Group
Description
Check the syntax of a macro. Does not execute the macro. Returns an Err object if there is a syntax error, otherwise Nothing is returned.
Parameters |
Description |
Check the macro named by this string value. |
Relative Paths
A relative macro name is a relative to the current drive's current directory. If the macro name is a special name (starts with '*') then its path is relative to the macro that is executing.
See Also
MacroCheckThis, MacroRun, MacroRunThis
Example
Sub Main
Dim E As ErrObject
Set E = MacroCheck("Demo")
If Not E Is Nothing Then Debug.Print E.Description
End Sub