search email adresses in word document

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.
 
G

Graham Mayor

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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Suzanne S. Barnhill

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.
 
C

CyberTaz

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.
 
Joined
Jul 18, 2013
Messages
1
Reaction score
0
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."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top