Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #15  
Old 07-22-2019, 09:30 PM
gmayor's Avatar
gmayor gmayor is offline Macro in Word to find specific words? Will be used for good cause (prostate cancer research) Windows 10 Macro in Word to find specific words? Will be used for good cause (prostate cancer research) Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The problem with adding words - in the case of Greg's version to a table. In the case of mine to an array, is not the addition of terms to either, but the processing required to get the required text associated with those terms. Finding the terms is simple enough but it is the results associated with the terms that are at issue.

Greg has made some sensible choices to enable you to input terms and report TRUE, and also to select particular values a set distance from the found term e.g. XXX and I would have used Mr and not Mr X to find the age of the person. His version doesn't highlight the terms, but that's an easy addition.

Unfortunately with manuscripts that do not conform to a standard pattern pasted into the document it can still be a bit hit and miss when trying to extract the results, and one sample is insufficient to produce more accurate results - and given the nature of what you are doing, I would have wanted the results to be accurate.

Had I been doing this I would have started with a form with a fixed layout using content controls or fields to enter the required pieces of information, but that would mean changing the 'electronic medical record' that you paste from.

What format is that medical record in? Would it be possible to read directly from that record as the chances are that it will be in a more structured format?

If you want to supply some more information and some further samples including a full list of terms to find, you can send them to the contact link on my web site (add your forum username to the subject so it won't get swept away by my spam filters) and I will see what else needs to be done.

I can share them privately with Greg (who is a friend of long standing) if you wish.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 

Tags
keyword, macro, search



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find (highlight) two and more words in a list of 75k single words in Word 2010 Usora Word 8 05-29-2018 03:34 AM
Macro in Word to find specific words? Will be used for good cause (prostate cancer research) Macro to search for specific words in a document mike0215 Word VBA 2 11-28-2017 07:25 AM
VBA Word - Find & Apply Styles to Specific Words - Using Case Statement jc491 Word VBA 17 12-26-2015 12:25 PM
Macro in Word to find specific words? Will be used for good cause (prostate cancer research) Need VBA For Macro On How To Remove Specific Words netchie Word VBA 6 08-28-2012 03:37 PM
Macro in Word to find specific words? Will be used for good cause (prostate cancer research) Macro for highlighting specific number of words icsjohn Word VBA 2 12-07-2011 06:44 PM

Other Forums: Access Forums

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