OK.
noHandlebars, you are posting the question in the Office forum as well. Please tell us what you are attempting to do.
If you are trying to action via code (this is a VBA issue), then stick to this thread.
Replace does work in footers. If it is not doing this for you, then perhaps you need to do a Repair. Perhaps. But are you indeed using Replace All?
Just to help a bit....
All Word documents have Sections. They may have only one, but they have at least one. Sections are an very important part of the object model of Word.
Collections are just that. Collections of objects. So, the Section Collection is the collection of Section objects.
HeaderFooters are objects as well. They are child objects of Sections. The collection of them is the HeaderFooter collection.
Every Section has six headerfooter objects - three for the header, three for the footer. They can not be deleted, and exist whether you have put contents(text/graphics) into them, or not.
Code:
Dim r As Range
Dim oHF As HeaderFooter
Dim oSection As Section
For Each oSection In ActiveDocument.Sections
For Each oHF In oSection.Footers
Set r = oHF.Range
With r.Find
.Text = "yadda"
.Replacement.Text = "Yogi Bear"
.Execute Replace:=wdReplaceAll
End With
Next
Next
The above will replace all instances of "yadda" with "Yogi Bear" in
all footers, in
all Sections.
faq219-2884
Gerry
My paintings and sculpture