View Single Post
 
Old 01-08-2018, 03:42 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

You might try the second macro in: https://www.msofficeforums.com/word/...html#post32031. That code creates a list of the quoted terms, including their page references. You need only check those that occur on just the one page.

That said, having defined terms like “Building” and “Blue Building” in the same document is poor practice and the macro in the above link won't differentiate 'Building' references from 'Blue Building' references. Coding for such differentiation would require a lot more work.

As for expressions such as 'Surrounding Zone', for which no definition is provided, if you have a separate document that lists such terms so their presence can be checked for, you could use the first macro in the above link then compare the entries in its output for the presence of items not listed in the table produced by the second macro. Otherwise, you'll undoubtedly run into problems coding a macro to ignore words starting sentences - but only when they're not part of such an expression.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote