Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: 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