#1
|
|||
|
|||
How can I test for the existence of a macro in script code?
VBScript:
Version #1 (look for a macro of any type with the given name) Code:
If Not vbld_AllMacros()("MACRO_NAME") Is Nothing Then Builder.LogMessage "MACRO_NAME exists" Else Builder.LogMessage "MACRO_NAME does not exist" End If Code:
If Not vbld_TempMacros()("MACRO_NAME") Is Nothing Then Builder.LogMessage "MACRO_NAME exists" Else Builder.LogMessage "MACRO_NAME does not exist" End If |
Thread Tools | |
Display Modes | Rate This Thread |
|
|