Repeat a macro?

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

Guest

Is there a way to tell a macro to loop -- keep playing itself over and over?
 
Yes.
If you want more information, you'll have to tell us more about what it is
you are trying to do.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Charles,

There is enough there to answer the question ;-)

Yes, try:

Sub Test()
Do
MsgBox "Click OK over and over and over until" _
& " you tire of this example. To stop" _
& " the madness, press CTRL+Break"
Loop
End Sub
 

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