Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search / Format Macro - all occurrences

Status
Not open for further replies.

sodakotahusker

Programmer
Mar 15, 2001
601
I am writing skits and I want to be able to bold all the words for a particular character. I have the macro searching and bolding one time - but I can't remember how to invoke a macro that will read the entire document. I'll need to be able to determine that the search failed to know when to quit so I could just keep looping until that condition exists. How do I know that results of a search in the macro?
Thanks!
 
Forget it. I figured it out. I used the selection.text property. If that value is empty string then the last occurrence has been found.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top