Hello,
I've been trying to develop a program, part of which searches through a word document and replaces key words with various employees names. This works fine but the code skips the headers and footers.
Does anyone know how I could include these in my search/replace in VB.net 2005
Also, as a side question will updating to VB.Net 2008 have the potential to cause problems in exising code which works fine?
Thanking you in advance for any help
Dara
For i = 0 To rplc
With searchArea.Find
.Text = origtxt(i)
.Replacement.Text = rplctxt(i)
.Forward = True
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute(Replace:=Word.WdReplace.wdReplaceAll)
End With
Next i