|
#1
|
|||
|
|||
Determin if Macro is Undefined in Project Script
How can I Determine if Macro is Undefined in a function in a Project Script.
I have a Function that I wish to call multiple times but for it to only run if it has not already run. Andy |
#2
|
|||
|
|||
Function IsMacroDefined(name)
IsMacroDefined = Not vbld_AllMacros()(name) Is Nothing End Function |
#3
|
|||
|
|||
Thanks
I did try this but just using the TemporaryMacros collection but it failed.
Was unclear why? All working now Andy |
#4
|
|||
|
|||
Not sure. This works equally well here for temporary macros:
Function IsMacroDefined(name) IsMacroDefined = Not Application.Macros(vbldMacroTemporary)(name) Is Nothing End Function |
|
|