Run a macro x time in a row

  • Thread starter Thread starter daniroy
  • Start date Start date
D

daniroy

Hello there,

another dumb question. I want to run the macro x times in a row, lets
say 10 times for instance, what code should I add ?

Thanks a lot for your help
Daniel
 
Hi Daniroy,

Try something like:

Public Sub Tester()

Dim i as Long

For i = 1 to 10
Call MyMacro
Next i

End Sub
 
work very fine thank you Norman for your help, it is appreciated
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top