Thread: [Solved] Find and replace issue
View Single Post
 
Old 01-29-2020, 01:05 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

If you don't want some replaced terms to be replaced by later F/R operations, then you need to ensure the order of the various F/R expressions are listed in the correct order.

If you only want to process whatever is selected, change:
With ActiveDocument.Range.Find
to:
With Selection.Range.Find

If you only want to process a particular font (Arial), change:
.Format = False
to:
.Format = True
.Font.Name = "Arial"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote