Thread: Repeat a Macro
View Single Post
  #3   Report Post  
Posted to microsoft.public.word.pagelayout
Brian Brian is offline
external usenet poster
 
Posts: 298
Default Repeat a Macro

Not knowing your code I'll make assumptions.

After your "Selection.Find" line, add:

With Selection.Find
Do While Selection.Find.Execute
Your code........

Loop
End With
End Sub

Hope this helps,

--
Brian McCaffery


"CJ" wrote:

In Word 2003, I have set up a macro to find text in a table, split the
table above the found text, and then insert a page break. The table
is over 400 pages long (and the text I'm finding is on every page) and
I would like to be able to have the macro repeat as many times as the
text is found. Is this possible?