View Single Post
 
Old 09-26-2016, 06:35 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,359
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by billob View Post
I can get the macro to run until it's first 'hit' occurs.
...
The problem is I can't get the macro to go any farther unless I fix this condition.

How do I get the macro to skip over this 'hit' and continue on?
That's how it was intended to work. If you want it to work from just the current selection (which means you'd have to select the range to process), change:
ActiveDocument
to:
Selection
or, to work from there to the end of the document, change:
ActiveDocument.Paragraphs
to:
ActiveDocument.Range(Selection.Start, ActiveDocument.Range.End).Paragraphs
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote