Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculate in a macro

Hello,

there is an application with a variable, named vstep.

Now I want to edit this variable by a macro. On click on the button the variable should added by 1.

e.g. vstep = 5, now it should be 6, on next click 7 and so on.

How can i realize that?

Thanx

3 Replies
Not applicable
Author

This macro should do the job.

sub test
set v = ActiveDocument.Variables("vstep")

var = v.GetContent.String

w = var + 1

v.SetContent w,true
end sub

Philippe

Not applicable
Author

Perfect,

Thanx

Not applicable
Author

Perfect,

Thanx