Re: Pulling out words in capitals from word doc



Thanks Jay,

Yes, copy them them to a new word. The ultimate intention is to arrange
these words in alphabetical order.

regards

"Jay Freedman" wrote:

> On Sun, 31 Jul 2005 16:27:02 -0700, "Gem_man"
> <Gemman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> >Plesae could someone help me out with some code to extract words that appear
> >in CAPITAL LETTERS in a word document?
> >
> >I cannot find any reference to this in VBA help files.
> >
> >Many thanks
>
> The general approach is to use a wildcard search (see
> http://www.gmayor.com/replace_using_wildcards.htm) and search for the
> expression
>
> <[A-Z]@>
>
> That will find each word that consists of only upper case letters.
>
> What you do with the word once you find it depends on what you mean by
> "extract". Do you want to copy them to another document?
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
>
.



Relevant Pages

  • Re: Can I add a VB command button to a Word document?
    ... Best Regards, ... "Jay Freedman" wrote: ... >> I have a Word document that is on a website, ...
    (microsoft.public.word.vba.general)
  • Re: how do I collapse and expand a section of a word document?
    ... >how do I collapse and expand a section of a word document? ... Regards, ... Jay Freedman ... Prev by Date: ...
    (microsoft.public.word.docmanagement)
  • Re: New Document
    ... >start a new Word document, the info that was saved is there on what is ... Regards, ... Jay Freedman ... Prev by Date: ...
    (microsoft.public.word.docmanagement)
  • Re: Line breaks
    ... "Jay Freedman" wrote: ... > zoozyq wrote: ... >> section of a Word document at once? ...
    (microsoft.public.word.pagelayout)
  • Re: Word Text Color
    ... then my writing turns back to black. ... and i want it to stay blue ink. ... for example i have the following in a word document: ... "Jay Freedman" wrote: ...
    (microsoft.public.word.docmanagement)