From Word 2000+, the headers/footers situation changed
drastically. Here's the code to open any type of footer,
whether the section uses Different First Page or not:
(I realize the spacing looks goofy here, but it is set up
to directly paste into the VBA window:
Sub OpenFooters()
'Opens the current page footer pane
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
If ActiveWindow.ActivePane.View.Type = wdNormalView Or _
ActiveWindow.ActivePane.View.Type = wdOutlineView Or _
ActiveWindow.ActivePane.View.Type = wdMasterView Then
ActiveWindow.ActivePane.View.Type = wdPageView
End If
ActiveWindow.ActivePane.View.SeekView =
wdSeekCurrentPageFooter
End Sub
Once in the footer, then just perform a regular find or
replace operation for the text. Make sure that you set
the wrap portion of the "With Selection.Find" code of the
search with the following:
.Wrap = wdFindStop
To get back out of the footer (or a header) to the main
document, use the following code:
Sub OpenMain()
'
'Code places cursor in the document's main text on the
CURRENT page
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
If ActiveWindow.ActivePane.View.Type = wdNormalView Or
ActiveWindow. _
ActivePane.View.Type = wdOutlineView Or
ActiveWindow.ActivePane.View.Type _
= wdMasterView Then
ActiveWindow.ActivePane.View.Type = wdPageView
End If
ActiveWindow.ActivePane.View.SeekView =
wdSeekMainDocument
End Sub
Hope this helps!
dz