I would like to write a maco to populate a field with a value e.g. 100. Then if I run the macro again I would like it to be 101 and so on for many iterations.
So, I would like to know how to define a variable with a value and how to add 1 to that variable.
Thanks for the help… I got the variables and globalvariables to work… and it solved my one off problem.
The issues that come to mind are that
the global variable does not work when the macro is called via a bookmark
I got it to work by setting a global variable in the macro to 1, running the macro to create the global macro, then changing the line in the macro to add 1 to the global variable.
Is there a way to define a global variable only if it does not exist.
it was necessary to open ui vision and click play macro… running the macro from a bookmark did not keep the global variable.
If I repeatedly run a macro, where do I initially set the global variable value… if I set it in the macro then it will be reset on the next run… or can I ‘set global variable value if not exists’.