Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2005

Tip: Looking for answers? Try searching our database.

Formating Mail Merge of 10 digit numbers to have parenthasis+dash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Omega411 - 19 Jun 2005 04:52 GMT
I have a database on Lotus and want to merge phone numbers. The phone numbers
in the database are 10 digits (XXXXXXXXXX) and I want to merge them so that
it shows up (XXX) XXX-XXXX, with parenthasis and a dash.
Is this possible?
Also I have 9 digit Zip codes with the same problem. I have XXXXXXXXX in the
database, but want to format the merge so that XXXXX-XXXX shows up with the
dash.
Any help is much appreceated.
Anne Troy - 19 Jun 2005 05:05 GMT
Using the information here:
http://www.officearticles.com/word/merge_field_formatting_in_microsoft_word.htm
Format it as "(000) 000-0000"
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com

> I have a database on Lotus and want to merge phone numbers. The phone numbers
> in the database are 10 digits (XXXXXXXXXX) and I want to merge them so that
[quoted text clipped - 4 lines]
> dash.
> Any help is much appreceated.
Graham Mayor - 19 Jun 2005 06:51 GMT
See http://www.gmayor.com/formatting_word_fields.htm

For the former you need

{Mergefield phonefieldname \# "(000) 000'-'0000"}

for the latter you need
{Mergefield zipfieldname \# "00000'-'0000"}

Signature

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

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

> I have a database on Lotus and want to merge phone numbers. The phone
> numbers in the database are 10 digits (XXXXXXXXXX) and I want to
[quoted text clipped - 5 lines]
> shows up with the dash.
> Any help is much appreceated.
omega411 - 20 Jun 2005 06:06 GMT
> See http://www.gmayor.com/formatting_word_fields.htm
>
[quoted text clipped - 16 lines]
>
> The website was very helpful, but when I tried to enter in the fomula for Zip codes as discribed after Formatting problem: the zip codes in my data source are 5-digit or 9-digit.  What I'd like to do is apply a number format that will convert all ZIP codes to ZIP + four format, i.e. 12345 becomes 12345-0000, 123450000 becomes 12345-0000 and 123456789 becomes 12345-6789

This requires the use of a conditional field which tests whether the field
has five or nine digits then applies appropriate formats.

I could not get it to function properly when I entered it in on my Word Mail
merge
Anne Troy - 20 Jun 2005 08:08 GMT
omega: Graham's website, which we both pointed you to, shows exactly how to
do this: http://www.gmayor.com/formatting_word_fields.htm
Scroll down about 2/3rds of the page and read it.
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com

> > See http://www.gmayor.com/formatting_word_fields.htm
> >
[quoted text clipped - 16 lines]
> >
> > The website was very helpful, but when I tried to enter in the fomula for Zip codes as discribed after Formatting problem: the zip codes in my
data source are 5-digit or 9-digit.  What I'd like to do is apply a number
format that will convert all ZIP codes to ZIP + four format, i.e. 12345
becomes 12345-0000, 123450000 becomes 12345-0000 and 123456789 becomes
12345-6789

> This requires the use of a conditional field which tests whether the field
> has five or nine digits then applies appropriate formats.
>
> I could not get it to function properly when I entered it in on my Word Mail
> merge
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.