Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
JLal JLal is offline
external usenet poster
 
Posts: 1
Default search email adresses in word document

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.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default search email adresses in 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
Word MVP web site http://word.mvps.org



JLal wrote:
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.



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default search email adresses in word document

A couple of additions:

1. Even if you have other hyperlinks in the document, the email addresses
may have the format { HYPERLINK "Mailto: " }. 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
Word MVP FAQ site:
http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"CyberTaz" typegeneraltaz1ATcomcastdotnet wrote in message
...
One option:

If you're using Word 2003 and the email addresses are formatted as
hyperlinks - and there are no other hyperlinks - go to EditFind. 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.
--
HTH |:)
Bob Jones
[MVP] Office:Mac


"JLal" wrote in message
...
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.




  #4   Report Post  
Posted to microsoft.public.word.docmanagement
CyberTaz CyberTaz is offline
external usenet poster
 
Posts: 1,291
Default search email adresses in word document

One option:

If you're using Word 2003 and the email addresses are formatted as
hyperlinks - and there are no other hyperlinks - go to EditFind. 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.
--
HTH |:)
Bob Jones
[MVP] Office:Mac


"JLal" wrote in message
...
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.



  #5   Report Post  
e5frog e5frog is offline
Junior Member
 
Posts: 0
Exclamation

I googled for an answer about this, it was actually some thread with an Italian guy that I initially found and even though the help also mention this exact method with {1,} I got an error. After a lot of trying I remembered helping my boss with a similar problem in Excel. Everything on the internet said to use , but it wouldn't work. When exchanging , with ; instead it worked just fine!

So if you're in a country where you use cm, m, kg, and comma instead of decimal point you may have to use ; instead of , it seems Word is nice enough to interpret the comma there as decimal point...

Kind of sucks though that the help, in Swedish, doesn't mention this at all. Running Windows and all software in English instead would solve so many problems a lot quicker.
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
How to disbale automatic underlining of eMail adresses in Word 2003 documents ? Thomas McGregor New Users 1 April 26th 06 12:25 PM
Email adresses fsa Microsoft Word Help 9 January 26th 06 06:24 AM
howto search for a word in more than one *.doc (search in all doc's in a folder)? erik Microsoft Word Help 2 February 11th 05 03:02 PM
plait adresses to an letter Pernille Microsoft Word Help 1 January 19th 05 10:12 AM
how do I transfer adresses in excel to word letters? robrd3 Microsoft Word Help 3 January 5th 05 11:17 PM


All times are GMT +1. The time now is 03:49 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"