X
xtcsuk
Hi,
How to finding a word in a text box using VBA? In recording a macro Word
found the word in the text box but running the macro Word does not find the
word.
Selection.Find.ClearFormatting
With Selection.Find
.Text = "test"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
can anyone help me to achieve this.
regards
How to finding a word in a text box using VBA? In recording a macro Word
found the word in the text box but running the macro Word does not find the
word.
Selection.Find.ClearFormatting
With Selection.Find
.Text = "test"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
can anyone help me to achieve this.
regards