View Single Post
 
Old 07-21-2025, 11:53 PM
ayomama ayomama is offline Windows 10 Office 2021
Novice
 
Join Date: Jul 2025
Posts: 5
ayomama is on a distinguished road
Default 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!
Reply With Quote