Counter (1 Viewer)

Pete490h

Member
Local time
Today, 22:28
Joined
Jan 18, 2021
Messages
44
Hi,
I need to run a macro several times based on a starting variable number
Would a good method be to create a counter starting at that variable number and reducing after every macro run
Examples would be good if you could assist thanks
Truly hope I’ve described my issue clearly😉
 

Ranman256

Well-known member
Local time
Today, 17:28
Joined
Apr 9, 2015
Messages
4,337
Code:
For I = 1 to iTop
  Docmd.runmacro "mMyMacro"
Next
 

Users who are viewing this thread

Top Bottom