Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
shin_oomura
Contributor II
Contributor II

Add Variable by using macro(VB)

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

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

From the API Guide:

ActiveDocument.CreateVariable "MyVar"

ActiveDocument.RemoveVariable "xyz"

View solution in original post

2 Replies
m_woolf
Master II
Master II

From the API Guide:

ActiveDocument.CreateVariable "MyVar"

ActiveDocument.RemoveVariable "xyz"

shin_oomura
Contributor II
Contributor II
Author

It worked!

Thank you very much for your help.

shin