Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
WillBeau WillBeau is offline
external usenet poster
 
Posts: 2
Default MS WORD: Finding words that are ALL CAPS

My question is: how to identify consecutive captial letters (ideally,
entirely capitalized words) in a string --- either by using Edit/Find or by
writing a VBA subroutine.

BACKGROUND
To prepare a large text file for import into MS Access, I need to locate the
lines of text that contain a word (any word) that is entirely capitalized ---
or, alternately, contain at least three consecutive capital letters. This
Edit/Find task would be part of a macro that would then insert paragraph
breaks at the start of such capitalized lines of text.

I tried a variety of wild card and format criteria to find capitalized words
(any capitalized word) in Edit/Find, but none worked. For example, ^$^$^$
with format property of ALL CAPS did not work for me.

For simplicity, I'd prefer to use Edit/Find, but I have working knowledge of
VBA if I must write a subroutine. Thanks for considering my question.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
WillBeau WillBeau is offline
external usenet poster
 
Posts: 2
Default MS WORD: Finding words that are ALL CAPS

Please disregard this post. In frustration, I finally selected the "Use
Wildcards" option for the search [A-Z]{3,} --- which did the trick. I
wouldn't have thought [A-Z]{3,} would contain a wildcard, but apparently it
does. Hopefully this posting will help the next person with this same task.

"WillBeau" wrote:

My question is: how to identify consecutive captial letters (ideally,
entirely capitalized words) in a string --- either by using Edit/Find or by
writing a VBA subroutine.

BACKGROUND
To prepare a large text file for import into MS Access, I need to locate the
lines of text that contain a word (any word) that is entirely capitalized ---
or, alternately, contain at least three consecutive capital letters. This
Edit/Find task would be part of a macro that would then insert paragraph
breaks at the start of such capitalized lines of text.

I tried a variety of wild card and format criteria to find capitalized words
(any capitalized word) in Edit/Find, but none worked. For example, ^$^$^$
with format property of ALL CAPS did not work for me.

For simplicity, I'd prefer to use Edit/Find, but I have working knowledge of
VBA if I must write a subroutine. Thanks for considering my question.

Reply
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
Finding words in a document bryan Microsoft Word Help 1 April 3rd 07 04:45 AM
How do I chenge the caps words to small caps? Merry Microsoft Word Help 3 September 8th 06 09:09 PM
Spell check is not finding misspelled words ShelDeMuse Microsoft Word Help 2 August 10th 06 09:36 PM
Finding unique words jezzica85 Microsoft Word Help 8 April 23rd 06 11:26 PM
Finding words that are 34 characters or higher--search expression erik_gregory Microsoft Word Help 1 February 7th 06 12:57 AM


All times are GMT +1. The time now is 09:47 PM.

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"