![]() |
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 |
Function IsMacroDefined(name)
IsMacroDefined = Not vbld_AllMacros()(name) Is Nothing End Function |
Thanks
I did try this but just using the TemporaryMacros collection but it failed.
Was unclear why? All working now Andy |
Not sure. This works equally well here for temporary macros:
Function IsMacroDefined(name) IsMacroDefined = Not Application.Macros(vbldMacroTemporary)(name) Is Nothing End Function |
All times are GMT -5. The time now is 10:13 AM. |
Copyright © 1999-2023 Kinook Software, Inc.