Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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