Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sherazade
Contributor III
Contributor III

macro to change a variable content with content of another variable

Hi,

I have no problem changing a variable content with a macro like:

sub cli


    set v=ActiveDocument.Variables("coeff")
    v.Forcecontent "20",20

end sub

but I do not know how to do the same using, instead of the "20",   a variable content.....

please help!

thanks

1 Solution

Accepted Solutions
sherazade
Contributor III
Contributor III
Author

FOUND!

 

sub X

v = ActiveDocument.Evaluate("coeffm")

ActiveDocument.Variables("coeff").SetContent v, true

end sub

View solution in original post

3 Replies
sherazade
Contributor III
Contributor III
Author

FOUND!

 

sub X

v = ActiveDocument.Evaluate("coeffm")

ActiveDocument.Variables("coeff").SetContent v, true

end sub

sherazade
Contributor III
Contributor III
Author

FOUND!

 

sub X

v = ActiveDocument.Evaluate("coeffm")

ActiveDocument.Variables("coeff").SetContent v, true

end sub

sherazade
Contributor III
Contributor III
Author

FOUND!

 

sub X

v = ActiveDocument.Evaluate("coeffm")

ActiveDocument.Variables("coeff").SetContent v, true

end sub