Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

But how to set variable value thru macro

I know how to get variables value:
Set

v = ActiveDocument.Variables(var)
getVariable = v.GetContent. String

But how to set variable value thru macro

Pls suggest





4 Replies
Not applicable
Author

Hi Arum,

Try searching this forum.

I have seen many threads like your scenario which has been solved in this forum.

- Sridhar

Not applicable
Author

I got it from this forum only



Set

var.SetContent "Show", true

i dont know what does this "true" stands for but it is compulsory to give it

thanks Sridhar

var = ActiveDocument.Variables("yHideShow")



Not applicable
Author

I got it from this forum only



Set

var.SetContent "Show", true

i dont know what does this "true" stands for but it is compulsory to give it

thanks Sridhar
thanks forum

var = ActiveDocument.Variables("yHideShow")



Not applicable
Author

The API guide is always a great place to look.

set v = ActiveDocument.Variables("Variable1")
v.SetContent "123",true

"True if variable MRU list is to be updated"

/Martin