Reply
 
Thread Tools Display Modes
  #1   Report Post  
Wim Verschaeve
 
Posts: n/a
Default How can I put one number 100 times in a document?

I have a whole document with a lot of phone numbers (xx.xx.xx). But I want
to put before every phone number a zone number(056). So the result has to be
this: (056)xx.xx.xx. Can anyone help me with this?



Wim


  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

From the Edit menu, select Replace and then click on the More button and
check the "Use wildcards" box. Then in the "Find what:" control, enter:

([0-9]{2}.[0-90]{2}.[0-9]{2})

and in the "Replace with:" control, enter:

(056)\1

Then click on Replace All.

For an explanation, See the article "Finding and replacing characters using
wildcards" at:

http://www.word.mvps.org/FAQs/Genera...gWildcards.htm

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Wim Verschaeve" wrote in message
...
I have a whole document with a lot of phone numbers (xx.xx.xx). But I want
to put before every phone number a zone number(056). So the result has to
be this: (056)xx.xx.xx. Can anyone help me with this?



Wim




  #3   Report Post  
Graham Mayor
 
Posts: n/a
Default

There's a typo in there Doug It should have read:
([0-9]{2}.[0-9]{2}.[0-9]{2})


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org

Doug Robbins wrote:
From the Edit menu, select Replace and then click on the More button
and check the "Use wildcards" box. Then in the "Find what:" control,
enter:
([0-9]{2}.[0-90]{2}.[0-9]{2})

and in the "Replace with:" control, enter:

(056)\1

Then click on Replace All.

For an explanation, See the article "Finding and replacing characters
using wildcards" at:

http://www.word.mvps.org/FAQs/Genera...gWildcards.htm


Doug Robbins - Word MVP
"Wim Verschaeve" wrote in
message ...
I have a whole document with a lot of phone numbers (xx.xx.xx). But
I want to put before every phone number a zone number(056). So the
result has to be this: (056)xx.xx.xx. Can anyone help me with this?



Wim



  #4   Report Post  
Doug Robbins
 
Posts: n/a
Default

Which must not matter because the string that I posted was copied from the
Edit Replace dialog after using it to successfully add the required area
code.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Graham Mayor" wrote in message
...
There's a typo in there Doug It should have read:
([0-9]{2}.[0-9]{2}.[0-9]{2})


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org

Doug Robbins wrote:
From the Edit menu, select Replace and then click on the More button
and check the "Use wildcards" box. Then in the "Find what:" control,
enter:
([0-9]{2}.[0-90]{2}.[0-9]{2})

and in the "Replace with:" control, enter:

(056)\1

Then click on Replace All.

For an explanation, See the article "Finding and replacing characters
using wildcards" at:

http://www.word.mvps.org/FAQs/Genera...gWildcards.htm


Doug Robbins - Word MVP
"Wim Verschaeve" wrote in
message ...
I have a whole document with a lot of phone numbers (xx.xx.xx). But
I want to put before every phone number a zone number(056). So the
result has to be this: (056)xx.xx.xx. Can anyone help me with this?



Wim





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 refer/track a paragraph number within the document? EDR Microsoft Word Help 1 July 26th 05 11:10 PM
How can I number paragraphs after finishing a document? Imhotep Microsoft Word Help 1 March 27th 05 10:08 PM
How many times are words used in a document. Marker Microsoft Word Help 4 March 9th 05 04:55 AM
merge document with columns and page number in header resets Island Grrl Mailmerge 1 January 12th 05 03:40 AM
Counting the number of times a single word is used in a Word XP do mmm Microsoft Word Help 1 November 28th 04 02:36 PM


All times are GMT +1. The time now is 04:26 AM.

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"