Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-05-2014, 06:52 AM
TechEd TechEd is offline Why is this Find string not working Windows XP Why is this Find string not working Office 2010 32bit
Novice
Why is this Find string not working
 
Join Date: May 2011
Posts: 16
TechEd is on a distinguished road
Default Why is this Find string not working

I am using the following string to find acronyms in reports.

.Text = "<[A-Z]{3" & strAcronym & "}>"

This line works fine and finds all uppercase groups of three or more letters, e.g. ABC, HELP, UNIFORM.
But, when I try the following code:

.Text = "<[A-Z]{3,4" & strAcronym & "}>"

which should find all instances of uppercase groups, but limited to three or four letters, it doesn't work and I get an error message.

Something I tried: If i use the Find and Replace dialog box and enter



<[A-Z]{3,4}>

It works

Any ideas ????
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is this Find string not working Find and Replace is not working Brigitte Word 7 06-15-2021 05:10 PM
Why is this Find string not working Way to search for a string in text file, pull out everything until another string? omahadivision Excel Programming 12 11-23-2013 12:10 PM
Why is this Find string not working string concat stopped working? AlexanderJohnWilley Excel 6 09-27-2013 08:39 PM
Why is this Find string not working Find and replace a string of text errtu Word 1 01-31-2013 02:09 PM
Why is this Find string not working Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:09 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