#1
|
|||
|
|||
Ms Word Macro
Hi All
I was wondering if you can help me set up a macro to help make my life easier. I work in the legal sector and i was tasked with checking defined terms in a couple of extremely long documents. there is a defintions section that includes all defined terms that are all in bold and the first letter is always capitalised. So i need to check if all defined terms are capitalised in the document (they are only bold in the definitions section but not the body of the document). I also need to check for any capitalised words in the document that are not defined in the definitions section as they could be either missing a definition or capitalised by accident. I was wondering if someone can help me design a macro that highlights all defined terms (can be more than one word) in one colour throughout the documents whether its capitalised or not and, highlight all capitalised words that are not defined in a different colour. That way i will know if defined terms have been capitalised in a document and spot undefined terms in the body. e.g. definitions: Dog means max Customer means the person purchasing something Housing Premises means 15 bromley road body: the Dog purchased by the customer was delivered to the Housing Premises owned by the Consumer who later sold it back to the Vendor. Similar questions have been asked before but the persons asking needed macros for terms in quotations rather than bold. I have no idea how to a macro works, i just know how to run them. I would appreciate your help and thank you in advance. |
#2
|
||||
|
||||
Rather than looking at building a macro which will have a lot of edge cases to deal with, I would recommend you investigate an editing software package called PerfectIt.
PerfectIt™ | Proofreading Software for Professionals. See PerfectIt™ | Capitalization of Phrases for specific mention of capitalised phrases.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
||||
|
||||
Alternatively you could use Document Batch Processes and its option to replace words in a table, to search for the terms in lower case and replace them with the terms in title case.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#4
|
||||
|
||||
The problem with colouring all words that are capitalised is that the first word of every sentence will be coloured, as will names, titles, honorifics, etc. It would take a lot of coding to work around that.
As for processing the actual defined terms, there'd be no need to colour those as a macro that finds them can just as easily ensure they're correctly capitalised. Before anyone could even begin coding, you'd need to provide details of how a macro might identify them. Simply saying the terms are bolded and the first character capitalised really isn't sufficient unless you can ensure nothing else appears that way elsewhere in the document.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro to transfer data from Word to another Word document with bookmark | Jovan Yong | Word VBA | 3 | 04-17-2018 04:27 AM |
Macro to put 1 word of a MS Word file in 1 cell of a Word or Excel Table | Singh_Edm | Word VBA | 6 | 11-13-2015 08:48 PM |
Convert Word 2007 macro to work in Word 2003 | Kamaflage | Word VBA | 1 | 02-25-2015 11:40 PM |
Macro Question: Need help making a macro to highlight the first word in every sentence | LadyAna | Word | 1 | 12-06-2014 10:39 PM |
Word 2003 Macro problem running in Word 2010 | norwood | Word VBA | 2 | 02-03-2014 06:49 PM |