Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-21-2025, 11:53 PM
ayomama ayomama is offline Using Regular Expression in Find Windows 10 Using Regular Expression in Find Office 2021
Novice
Using Regular Expression in Find
 
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
 

Tags
regex, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Regular Expression in Find Regular expression confusion! VBAFiddler Word VBA 11 02-13-2021 01:16 AM
Using Regular Expression in Find find/replace wildcard expression help LQuinn Word VBA 2 01-28-2021 11:57 PM
Is it possible to use wild cards or regular expression in autocorrect kcvinu Word 2 12-14-2018 02:06 PM
Using Regular Expression in Find Regular Expression Syntax to Search for Alternative Words qubie Word 2 11-29-2017 05:48 AM
VBA code to enable Regular Expression ronmayerle Word VBA 2 11-20-2014 01:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:01 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft