Reply
 
Thread Tools Display Modes
  #1   Report Post  
Mark @ ICM
 
Posts: n/a
Default how do I run a macro repeatedly?

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.
  #2   Report Post  
Herb Tyson [MVP]
 
Posts: n/a
Default

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.

--
Herb Tyson MS MVP
Please respond in the newsgroups so everyone can follow along.
http://www.herbtyson.com
"Mark @ ICM" Mark @ wrote in message
...
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.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Button Won't Stay on Toolbar caleb Microsoft Word Help 2 June 14th 05 11:59 PM
Possible bug when recording a Word Macro Raven95 Microsoft Word Help 4 April 30th 05 09:49 PM
Running document macro from server Intravler New Users 0 March 4th 05 05:33 AM
Save As is not working due to macro security settings Craig Meritz Microsoft Word Help 1 December 16th 04 04:53 AM
2000 to 2002 macro and "Could not open macro storage" Art Farrell Mailmerge 1 December 6th 04 01:40 PM


All times are GMT +1. The time now is 01:15 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"