I have a sub that is supposed to search through my word document performing a find and replace. For some reason, it completely fails to do its job. The original text is still in the document and nothing gets replaced. The code is as follows:
'Show hidden text
ActiveWindow.View.ShowHiddenText = True
.Text = "Text To Find"
.Replacement.Text = "Text To Replace"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
It's driving me nuts as I simply cannot understand why it doesn't work. I recorded a macro which found and replaced the text and then used said macro, but nothing gets replaced!!!
Can anyone give me a clue as to why this might be please