Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #16  
Old 02-18-2016, 06:35 PM
Marrick13 Marrick13 is offline Need to improve speed of Excel macro that searches for whole word matches Windows XP Need to improve speed of Excel macro that searches for whole word matches Office 2010 32bit
Competent Performer
Need to improve speed of Excel macro that searches for whole word matches
 
Join Date: Jun 2006
Posts: 102
Marrick13 will become famous soon enough
Default

I realze the caret mans you want to keep the following letters, as in "keeping" them in a replace situation. I was looking at them to identify whole word matches, so I presume if he code detects a letter or number before or after the search text it finds, it should regard that hit as NOT a whole word match. However, if the hit has punctuation or a special character on either adjacent side, such as a comma, $, !, :, etc., I think it should regard the term as a whole word and extract it. I tried plugging that long pattern above into the code and got syntax errors, and it's too many characters for me to figure out what's wrong with it. But I do know that if I run the code with .Pattern = "[^A-Za-z0-9\ ]", it ignores all hits that have a dash (or hyphen) before or after the search term (without spaces). That's what I'm after - how to get the code to accept hits with adjacent punctuation or special characters as whole word matches. I still don't know how to get there.
Reply With Quote
 

Tags
case, search, whole word match



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to speed up macro AC PORTA VIA Excel 3 10-30-2015 08:58 PM
Excel formula required to speed up process of creating species rarefaction curves. Ecology! Tim_F Excel 2 07-18-2014 04:56 AM
Need to improve speed of Excel macro that searches for whole word matches word and keyboard speed ptz Word 2 09-20-2012 06:37 AM
Need to improve speed of Excel macro that searches for whole word matches Help -can i improve this way of working? lucky67 Office 1 01-26-2012 09:20 PM
Need to improve speed of Excel macro that searches for whole word matches Change how windows searches cadams Office 1 12-07-2010 10:01 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:50 PM.


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