search email adresses in word document

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I search for and select all the email addresses in a word document?
I want to copy just the email addresses into a new word document.
 
The search tool will work fine for this. Use the find routine (CTRL+F) to
find

[a-zA-Z0-9\-_.]{1,}\@[a-zA-Z0-9\-_.]{1,}

with the wildcards box and the highlight all found entries box checked.
The e-mail addresses will be highlighted.
Close the find dialog. Then copy to the clipboard.
Open a new document and paste.


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
A couple of additions:

1. Even if you have other hyperlinks in the document, the email addresses
may have the format { HYPERLINK "Mailto: (e-mail address removed)" }. If so,
you can isolate those by searching for

^19 HYPERLINK "Mailto:

Note that you must have field codes displayed for this to work.

2. A quick way to convert text-only email addresses to hyperlinks is to run
AutoFormat over the document with "Internet and network paths with
hyperlinks" checked. This method does convert the addresses to the {
HYPERLINK "Mailto: format.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
One option:

If you're using Word 2003 and the email addresses are formatted as
hyperlinks - and there are no other hyperlinks - go to Edit>Find. Do not
type anything into the "Find what:" field. Put a check in the "Highlight all
items found in:" box (make sure it's set for Main Document), then click the
MORE button. Open the Format list & choose Style, then select Hyperlink from
the Style list. After clicking Find All, close the Find dialog box, copy the
selected hyperlinks, then paste into a new blank doc. You should get a list
of the email addresses when you paste.

If you're using Word 2007 the process is almost the same. The Find feature
is located on the HOME tab, and instead of a Find All button you click the
"Find In:" button & choose Main Document there. When you do, all hyperlinks
in the doc will be selected. Also, once you close the box & copy/paste the
links they get pasted into the other doc as plain text rather than live
hyperlinks. If you want them as active links you can use the Format Painter
in the original doc to copy the Hyperlink formatting, then select all the
links in the new doc to format them - or you can just select them in the new
doc & apply the Hyperlink style.
 
Hello all! :)


How is this

[a-zA-Z0-9\-_.]{1,}\@[a-zA-Z0-9\-_.]{1,}

converted for Microsoft Office 2010?


It says "The Find What text contains a Pattern Match expression which is not valid."
 
Back
Top