Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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