I’m working with an existing VBA application that the users are requesting adding the capability of using wildcards in their find/replace search. I can change the following code to allow wildcards…but the search becomes case sensitive. Is there a way to avoid this?
Private Sub SetSearchCriteria()
With Selection.Find
.ClearFormatting
.Replacement.Text = vbNullString
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False –> True allows wildcards
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
End Sub