Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Ernie Starr Ernie Starr is offline
Junior Member
 
Posts: 0
Default

Quote:
Originally Posted by Greg View Post
I have a contract document in Word 2007 format. I need to located all of the
capitalized terms to ensure they are listed in the Definitions section of the
contract. Is there any easy way to locate all of the capitalized words in a
Word document?
Hi Greg,

There are 2 ways to locate all capitalized terms in your document as follows:

1. Use "Advanced Find" Feature
Enter "[A-Z]{1,}" (without quotation marks) in "Find what" text box.
It shall find you all capitalized words. To be exact, it finds all words with at least one letter capitalized.
And only capitalized letters are in selection not the entire word.

2. Run a Macro
Press "Alt+ F11" to open VBA editor and create a new module.
Then paste and run the following codes:

Sub FindandHighlightCapitalizedWords()
Dim objRange As Range

With Selection
.HomeKey Unit:=wdStory

With Selection.Find
.ClearFormatting
.Text = "[A-Z]{1,}"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchWildcards = True
.Execute
End With
Do While .Find.Found
Set objRange = Selection.Range
objRange.HighlightColorIndex = wdBrightGreen
.Collapse wdCollapseEnd
.Find.Execute
Loop
End With
End Sub

The effect is the same as that in method 1.

For more detailed information, you can refer to this article:

https://www.datanumen.com/blogs/2-qu...word-document/


Hope that helps!

Ernie

Last edited by Ernie Starr : April 24th 17 at 05:05 AM
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Find Highlighted Words in a Document? e125 Page Layout 3 September 7th 08 01:09 AM
how do you find out how many words their are in the document!? anonymous Microsoft Word Help 1 October 17th 07 01:42 AM
How do I find out how many words are in my document? wazup1234 Microsoft Word Help 1 June 30th 06 03:23 AM
Fore Words : find all repetitions in your MS Word document ! [email protected] Microsoft Word Help 2 February 23rd 06 04:34 PM
Fore Words : find all repetitions in your MS Word document ! [email protected] New Users 0 February 23rd 06 10:12 AM


All times are GMT +1. The time now is 05:43 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"