MacroFileName$()

Syntax

MacroFileName$([MacroName$])

Remarks

Returns the path and filename of the template containing the macro specified by MacroName$. Word first looks for the macro in the active template (if different from Normal), then in the Normal template, then in any loaded global templates (in alphabetic order), and finally in built-in commands (the same order Word would look for the macro when running it). If MacroName$ is omitted, MacroFileName$() returns the path and filename of the template containing the macro that is running. If MacroName$ does not exist, MacroFileName$() returns an empty string ("").

See Also

MacroDesc$(), MacroName$(), MacroNameFromWindow$()