|
#1
|
|||
|
|||
Setting macros from VBScript
Hello,
How do I set a macro from a VBScript function? The following Application.ExpandMacrosAndScript("%<property>%") is used to retrieve macro property values only. How can I set an already existing property value? The following unfortunately doesn't work. :-( Application.ExpandMacrosAndScript("%<property>%") = "New Value" Thanks in advance, Martin |
#2
|
|||
|
|||
To add a temp macro, use vbld_TempMacros().Add "MacroName", "MacroValue"
or for any type of macro, use this form: Application.Macros(vbldMacroTemporary).Add "MacroName", "MacroValue" See http://www.visualbuild.com/Manual/?macrosaddmethod.htm for the details. |
#3
|
|||
|
|||
Cool! It works! Thanks Kevin,
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|