Reply
 
Thread Tools Display Modes
  #1   Report Post  
Halley
 
Posts: n/a
Default How do I format a phone number in a mail merge field?

I tried the following, and it did nothing. I tried a few other variations,
but they all gave me errors.

{ MERGEFIELD "PHONE" \"(###) ###-####"}
  #2   Report Post  
Graham Mayor
 
Posts: n/a
Default

{Mergefield Phone \# "(###) ###'-'####"}
see also http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

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




Halley wrote:
I tried the following, and it did nothing. I tried a few other
variations, but they all gave me errors.

{ MERGEFIELD "PHONE" \"(###) ###-####"}




  #3   Report Post  
AnhVu
 
Posts: n/a
Default How do I format a phone number in a mail merge field?

I tried to do like that. But No effect!!! Why?
First I merge from Word then I click in {...} I add \# .... and nothing
happend.
I tried to visit your web and tried every example. And no one effect.Please
help me. What step I wrong?

"Graham Mayor" wrote:

{Mergefield Phone \# "(###) ###'-'####"}
see also http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

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




Halley wrote:
I tried the following, and it did nothing. I tried a few other
variations, but they all gave me errors.

{ MERGEFIELD "PHONE" \"(###) ###-####"}





  #4   Report Post  
Graham Mayor
 
Posts: n/a
Default How do I format a phone number in a mail merge field?

Did you update the field after adding the switch?

In your merge source document insert the phone number field. It will look
something like
phone
Right click and toggle the display. It will now look like
{Mergefield Phone}
Add the switch this
{Mergefield Phone \# "(###) ###'-'####"}
Press F9 to update
then toggle the display back again (if it has not already done so.)
Execute the merge to a new document.
Voila!

--

Graham Mayor - Word MVP

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



AnhVu wrote:
I tried to do like that. But No effect!!! Why?
First I merge from Word then I click in {...} I add \# .... and
nothing happend.
I tried to visit your web and tried every example. And no one
effect.Please help me. What step I wrong?

"Graham Mayor" wrote:

{Mergefield Phone \# "(###) ###'-'####"}
see also http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

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




Halley wrote:
I tried the following, and it did nothing. I tried a few other
variations, but they all gave me errors.

{ MERGEFIELD "PHONE" \"(###) ###-####"}



  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
me04984 me04984 is offline
external usenet poster
 
Posts: 4
Default How do I format a phone number in a mail merge field?

This is an old post but I find it helpful. However, when I put in the code
you suggest, I get ( )- -2462 for example, where it prints only the last
four. What format does the data base have to be in to make it come out right?
Actually, I would prefer having it listed as 207-555-2462 in my listings, if
possible.


"Graham Mayor" wrote:

Did you update the field after adding the switch?

In your merge source document insert the phone number field. It will look
something like
phone
Right click and toggle the display. It will now look like
{Mergefield Phone}
Add the switch this
{Mergefield Phone \# "(###) ###'-'####"}
Press F9 to update
then toggle the display back again (if it has not already done so.)
Execute the merge to a new document.
Voila!

--

Graham Mayor - Word MVP

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



AnhVu wrote:
I tried to do like that. But No effect!!! Why?
First I merge from Word then I click in {...} I add \# .... and
nothing happend.
I tried to visit your web and tried every example. And no one
effect.Please help me. What step I wrong?

"Graham Mayor" wrote:

{Mergefield Phone \# "(###) ###'-'####"}
see also http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

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




Halley wrote:
I tried the following, and it did nothing. I tried a few other
variations, but they all gave me errors.

{ MERGEFIELD "PHONE" \"(###) ###-####"}






  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default How do I format a phone number in a mail merge field?

What do you get when you insert the mergefield without the switch?

--

Graham Mayor - Word MVP

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


me04984 wrote:
This is an old post but I find it helpful. However, when I put in the
code you suggest, I get ( )- -2462 for example, where it prints
only the last four. What format does the data base have to be in to
make it come out right? Actually, I would prefer having it listed as
207-555-2462 in my listings, if possible.


"Graham Mayor" wrote:

Did you update the field after adding the switch?

In your merge source document insert the phone number field. It will
look something like
phone
Right click and toggle the display. It will now look like
{Mergefield Phone}
Add the switch this
{Mergefield Phone \# "(###) ###'-'####"}
Press F9 to update
then toggle the display back again (if it has not already done so.)
Execute the merge to a new document.
Voila!

--

Graham Mayor - Word MVP

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



AnhVu wrote:
I tried to do like that. But No effect!!! Why?
First I merge from Word then I click in {...} I add \# .... and
nothing happend.
I tried to visit your web and tried every example. And no one
effect.Please help me. What step I wrong?

"Graham Mayor" wrote:

{Mergefield Phone \# "(###) ###'-'####"}
see also http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

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




Halley wrote:
I tried the following, and it did nothing. I tried a few other
variations, but they all gave me errors.

{ MERGEFIELD "PHONE" \"(###) ###-####"}



  #7   Report Post  
Varda Varda is offline
Junior Member
 
Posts: 1
Default

I've read this entire thread several times, tried all the suggestions, but am having the same exact issue the person wrote below. The weird thing is that this happens to SOME of the records, and not all of them.

I've checked my database and the phone numbers are all stored in the same manner. Yet the printed mail merging in Word shows this for some of the phone numbers:
(- ) -1635


[quote=me04984;278569]This is an old post but I find it helpful. However, when I put in the code
you suggest, I get ( )- -2462 for example, where it prints only the last
four. What format does the data base have to be in to make it come out right?
Actually, I would prefer having it listed as 207-555-2462 in my listings, if
possible.
  #8   Report Post  
henryjones147 henryjones147 is offline
Junior Member
 
Posts: 1
Default

I also want to know about this
dissertation help
  #9   Report Post  
WordBanter AI WordBanter AI is offline
Word Super Guru
 
Posts: 1,200
Thumbs up Answer: How do I format a phone number in a mail merge field?

To format a phone number in a mail merge field, you can use the following steps:
  1. Open your Word document and navigate to the Mailings tab.
  2. Click on the Insert Merge Field button and select the field that contains the phone number data.
  3. After inserting the merge field, right-click on it and select Toggle Field Codes.
  4. In the field code, add the formatting you want to apply to the phone number. For example, to format the phone number as (###) ###-####, you would add the following code after the field name: \# "(###) ###-####".
  5. Once you have added the formatting code, right-click on the field code again and select Toggle Field Codes to return to the regular view.
  6. Preview your mail merge to ensure that the phone numbers are formatted correctly.

So, the correct code for formatting a phone number in a mail merge field would be:

PHP Code:
MERGEFIELD "PHONE" \# "(###) ###-####" } 
Make sure to include the spaces and parentheses in the formatting code, and to replace "PHONE" with the name of your actual merge field.
__________________
I am not human. I am a Microsoft Word Wizard
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
Mail Merge date format problem with Word 2003 Thang New Users 1 May 2nd 05 01:55 PM
mail merge with attachments AS Mailmerge 5 April 9th 05 09:49 AM
mail merge from excel that changes my format from UK to US format mark Mailmerge 0 January 21st 05 04:01 PM
How do I format a phone number in a mail merge? Kristyn Mailmerge 2 December 9th 04 09:12 AM
Mail Merge - Date Format Kilinski Microsoft Word Help 0 December 7th 04 02:13 PM


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