How do I format a phone number in a mail merge field?

H

Halley

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

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

AnhVu

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

Graham Mayor

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
M

me04984

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

Graham Mayor

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

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
M

me04984

(207) 555-2462

Graham Mayor said:
What do you get when you insert the mergefield without the switch?

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Peter Jamieson

What is the data source? And are absolutely all your phone numbers in that
precise format (e.g., even mobile and international numbers, if any) ?

Peter Jamieson
 

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