Find/Replace with special characters

Y

Yeager

The following snippet of code will replace occurences of
these SGML entities with special characters that are
pretty close to the original output:

' Entities
' Handles &circle; entity
Selection.HomeKey unit:=wdStory
With Selection.Find
.ClearFormatting
.MatchWildcards = False
.Text = "&circle;"
While .Execute
Selection.Range.InsertSymbol _
Font:="Wingdings 2", CharacterNumber:=-3943, _
Unicode:=True
Wend
End With

' Handles • entity
Selection.HomeKey unit:=wdStory
With Selection.Find
.ClearFormatting
.MatchWildcards = False
.Text = "•"
While .Execute
Selection.Range.InsertSymbol _
Font:="Wingdings 2", CharacterNumber:=-3944, _
Unicode:=True
Wend
End With

So far so good. But how can I code this so that
occurences of these entities are replaced in the
header/footer?

-Yeager
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top