Hi,
Open a Word document, Click Tools - Macros - Visual Basic Editor
Double click This document on the left.
Paste in the code below
Change the Diectory Location, OldAddress & NewAddress
Then Run the code - I would try it out on test files first.
Private Sub Main()
Dim strPath As String
Dim strFile As String
Dim sFooter As String
Dim objWord As Word.Application
Dim objDocContent As Word.Range
Set objWord = New Word.Application
' This is the Directory Location
strPath = "C:\Test\"
' Look for Word Documents only
strFile = Dir(strPath & "*.doc", vbDirectory)
While strFile <> ""
' Open the Document
objWord.Documents.Open strPath & strFile
' Get the contents
Set objDocContent = objWord.ActiveDocument.Content
' Get the Footnote
sFooter = objDocContent.Sections(1).Footers(Word.WdHeaderFooterIndex.wdHeaderFooterPrimary).Range.Text
If InStr(1, sFooter, "OldAddress") Then
sFooter = Replace(sFooter, "OldAddress", "NewAddress")
objDocContent.Sections(1).Footers(Word.WdHeaderFooterIndex.wdHeaderFooterPrimary).Range.Text = sFooter
objWord.Documents.Save
End If
' Close the Document
objWord.Documents.Close
' Get the next Document
strFile = Dir
Wend
' Quit Word
objWord.Quit
' Destroy the object
Set objWord = Nothing
End Sub