how do I run a macro repeatedly?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a 10,000 page Word document and I need to print only specific pages.
I have recorded a macro to find and print the correct pages, but now I need a
way to repeat this macro 1,000 or so times. I am not a programmer.
 
You need to enclose the macro's "guts" inside a control structure of some
kind. A For/Next loop can perform an action any number of times you specify.
Or, if there is a condition you can detect that tells you when to stop, you
can use a While/Wend combination... or perhaps something different would be
more appropriate. Check in one of the VBA newsgroups for more specific help.
 

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