Word: automating the repetition of a macro run

C

cmmnctng

In MS Word, how do you arrange for a macro to run many times in immediate
succession, without separately activiting each run? I don't want to build
X-number of repetitions into the macro itself, because the required multiple
won't be consistent. I might need 1000 repetitions of the macro now; 10,000
a half-hour later; and 200 at another point.

WordPerfect 8.0 had a "repeat next action" feature. You specified a certain
multiple, and when you triggered the macro, it ran that many times. Is there
some comparable function or method in Word?
 
R

rhamre

You can do a inputbox at the beginning of the macro to specify how many times
to run it, then use a "For x = 1 to y" where y is the variable you can use to
specify how many times to run it.

sample:

y = InputBox(prompt:="How many times do you want the macro to run")
 

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

Top