Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2020, 12:58 PM
Moyx Moyx is offline Ms Word Macro Windows 10 Ms Word Macro Office 2019
Novice
Ms Word Macro
 
Join Date: Jan 2020
Posts: 1
Moyx is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 01-08-2020, 03:36 PM
Guessed's Avatar
Guessed Guessed is offline Ms Word Macro Windows 10 Ms Word Macro Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
  #3  
Old 01-08-2020, 09:25 PM
gmayor's Avatar
gmayor gmayor is offline Ms Word Macro Windows 10 Ms Word Macro Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
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 of
Default

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
Reply With Quote
  #4  
Old 01-08-2020, 10:00 PM
macropod's Avatar
macropod macropod is offline Ms Word Macro Windows 7 64bit Ms Word Macro Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply

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
Ms Word Macro Macro Question: Need help making a macro to highlight the first word in every sentence LadyAna Word 1 12-06-2014 10:39 PM
Ms Word Macro Word 2003 Macro problem running in Word 2010 norwood Word VBA 2 02-03-2014 06:49 PM

Other Forums: Access Forums

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


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