Iterate a macro more than 20 times

jcsuarez

jcsuarez
Local time
Today, 06:28
Joined
Dec 10, 2009
Messages
44
I have an application in ACCESS 2003 that runs a macro that needs to be iterated more than 20 times in some occasions. In those cases appears a sign that states that a macro cannot be called by itself more than 20 times. Is there any simple way to override this obstacle, since I don't know VBasic?
 
can you use a macro, to run a macro,
command: RUN MACRO
and set the REPEAT COUNT = 40 (or your #)

(no VB needed)
but if you want VB, make a form with a text box to put the repeat #:
Code:
for i = 1 to txtBox
  docmd.RunMacro "mMyMacro"
next
 
Last edited:
Use the inbuilt wizard to covert the macro to VBA

Then create the simplest loop to repeat it as many times as you need.
It is not that scary to do VBA, trust me.
 

Users who are viewing this thread

Back
Top Bottom