
07-21-2025, 11:53 PM
|
Novice
|
|
Join Date: Jul 2025
Posts: 5
|
|
Using Regular Expression in Find
Hi
- What is the flavor of Regular Expressions that Range.Find uses/understands?
- What is the pattern (i.e. the value of strSearch below) that will fully match @PART_01, @ERTDRETHH_56 and @ASFGHFGHHFDERTGE_83?
Code:
Dim rngStory As Word.Range, strSearch As String
With rngStory.Find
.MatchWildcards = True
.text = strSearch
.Wrap = WdFindWrap.wdFindStop
.Execute Forward:=True
End With
Thanks!
|