Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
bh bh is offline
external usenet poster
 
Posts: 11
Default Format Zip Codes in Excel for a Mailmerge

In Version 2003, for a mailmerge using data in Excel, how does one format the
cells for the Zip Codes so that the Zip Code numbers starting with 0 will
appear in the word merge. For example, the Zip Code for Englewood, NJ is
07631, and if the Zip Code cells are formatted as Number, Special, General,
or even programmed in Custom, the first digit "0" does not appear in the
merge, but the only the "7631" appears. On the other hand, if the Zip Code
cells are formatted as Text, only the first digit "0" appears in the merge,
but not the remaining digits of the Zip Code.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Format Zip Codes in Excel for a Mailmerge

Use Alt-F9 to reveal the underlying field codes, e.g.

{ MERGEFIELD myzipcode }

strip out anything that looks like \*mergeformat

and change the code to

{ MERGEFIELD myzipcode \#00000 }

Peter Jamieson

http://tips.pjmsn.me.uk

BH wrote:
In Version 2003, for a mailmerge using data in Excel, how does one format the
cells for the Zip Codes so that the Zip Code numbers starting with 0 will
appear in the word merge. For example, the Zip Code for Englewood, NJ is
07631, and if the Zip Code cells are formatted as Number, Special, General,
or even programmed in Custom, the first digit "0" does not appear in the
merge, but the only the "7631" appears. On the other hand, if the Zip Code
cells are formatted as Text, only the first digit "0" appears in the merge,
but not the remaining digits of the Zip Code.

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
bh bh is offline
external usenet poster
 
Posts: 11
Default Format Zip Codes in Excel for a Mailmerge

Thanks. This didn't work for me, but another post in the Excel Discussion
Group explained how to open via DDE.

Use Alt-F9 to reveal the underlying field codes, e.g.

{ MERGEFIELD myzipcode }

strip out anything that looks like \*mergeformat

and change the code to

{ MERGEFIELD myzipcode \#00000 }

Peter Jamieson

http://tips.pjmsn.me.uk

BH wrote:
In Version 2003, for a mailmerge using data in Excel, how does one format the
cells for the Zip Codes so that the Zip Code numbers starting with 0 will
appear in the word merge. For example, the Zip Code for Englewood, NJ is
07631, and if the Zip Code cells are formatted as Number, Special, General,
or even programmed in Custom, the first digit "0" does not appear in the
merge, but the only the "7631" appears. On the other hand, if the Zip Code
cells are formatted as Text, only the first digit "0" appears in the merge,
but not the remaining digits of the Zip Code.


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 show date / currency format in mailmerge from Excel? LoreKai Mailmerge 4 August 14th 09 06:30 AM
Mailmerge from Excel in Memo format Dave Reardon Mailmerge 5 December 10th 08 04:33 PM
Keeping format excel-word mailmerge yshridhar Mailmerge 1 March 29th 08 09:15 AM
Format Excel cell in Word Mailmerge Geert Mailmerge 3 February 14th 08 09:19 AM
Mailmerge from EXCEL, custom format problem TonyB Mailmerge 1 December 1st 04 04:41 PM


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