#1   Report Post  
Posted to microsoft.public.word.docmanagement
JLeck
 
Posts: n/a
Default Repeat a macro?

Is there a way to tell a macro to loop -- keep playing itself over and over?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Charles Kenyon
 
Posts: n/a
Default Repeat a macro?

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

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
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.

"JLeck" wrote in message
...
Is there a way to tell a macro to loop -- keep playing itself over and
over?



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Greg
 
Posts: n/a
Default Repeat a macro?

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

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
Table in a Form HiDbLevel Tables 12 February 27th 06 12:59 PM
Repeat macro until end of document Chris@PDX Microsoft Word Help 1 July 7th 05 03:57 AM
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
2000 to 2002 macro and "Could not open macro storage" Art Farrell Mailmerge 1 December 6th 04 12:40 PM


All times are GMT +1. The time now is 07:14 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"