D
dsc
When I try to use wildcards in a search and replace from a macro,
With ActiveDocument.Content.Find
.Text = "<" & TermString & ">"
.Replacement.Text = StandardString
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = True
.MatchWholeWord = True
.MatchByte = True
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.MatchFuzzy = False
.Execute Replace:=wdReplaceAll
End With
I get error 5590 on "Execute Replace:=wdReplaceAll".
Anybody got any ideas?
With ActiveDocument.Content.Find
.Text = "<" & TermString & ">"
.Replacement.Text = StandardString
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = True
.MatchWholeWord = True
.MatchByte = True
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.MatchFuzzy = False
.Execute Replace:=wdReplaceAll
End With
I get error 5590 on "Execute Replace:=wdReplaceAll".
Anybody got any ideas?