Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to add(create) varable by using macro.
And, if it is possible, I want to delete the variable, too.
like,
set v = ActiveDocument.AddVariable("vTest") '<-- there is no "AddVariable" method
v.SetContent "123", true
v.Remove '<-- there is no "Remove" method
Please teach me how to create / delete variable.
Regards.
shin
From the API Guide:
ActiveDocument.CreateVariable "MyVar"
ActiveDocument.RemoveVariable "xyz"
From the API Guide:
ActiveDocument.CreateVariable "MyVar"
ActiveDocument.RemoveVariable "xyz"
It worked!
Thank you very much for your help.
shin