Hello, I am trying to use Wild card in .Find with variables. You can see in attachment below.
But for some reason it is not finding. Can anyone tell me where I do wrong?
Thanks in advance.
But for some reason it is not finding. Can anyone tell me where I do wrong?
VBA Code:
For xW1 = 1 To 30
With Selection.Find
.Text = "*" & SozX(xW1) & "*" & SozX(xW1 + 1) & "*" & SozX(xW1 + 2) & "*" & SozX(xW1 + 3) & "*" & SozX(xW1 + 4) & "*" & SozX(xW1 + 5) & "*"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
If Selection.Find.Found = True Then MsgBox ("Tapildi")
Next xW1
Thanks in advance.