Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I woud like to increment a variable 'vIncr' in Macro definition and assign the resulting value to another variable 'vLatest'. Please help me in achieving this. Thanks in advance...
Try this:
var = ActiveDocument.Variables("var1").GetContent.String
ActiveDocument.Variables("var2").SetContent var, true
- Marcus
Hi Marcus
I want to first increment the value of variable before assigning it to another variable. Main question is : how to increment the value of variable by 1.
var = ActiveDocument.Variables("var1").GetContent.String
var = var + 1
ActiveDocument.Variables("var2").SetContent var, true
- Marcus
Great.. Thanks Marcus