Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Mail merge does not show leading zero in Zip Code

I can put leading zero by changeing the cell format, but when I rum mail
merge through and attach an Excel file, my leading zero are missing. For
example, Newark, NJ 07102 (it will display and print 7102). It happens in all
MS Office versions released after Office 2000.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Mail merge does not show leading zero in Zip Code

Hi
one way: use a helper column with a formula such as
=TEXT(A1,"00000")

--
Regards
Frank Kabel
Frankfurt, Germany

"Altaf Choudry" <Altaf schrieb im
Newsbeitrag ...
I can put leading zero by changeing the cell format, but when I rum

mail
merge through and attach an Excel file, my leading zero are missing.

For
example, Newark, NJ 07102 (it will display and print 7102). It

happens in all
MS Office versions released after Office 2000.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Mail merge does not show leading zero in Zip Code

Debra Dalgleish posted this for a different question:

In the Mail Merge, after you select your Excel file as a data source,
you should see a 'Confirm Data Source' dialog box.
(If you don't see the dialog box, change the setting in Word --
under ToolsOptions, General -- add a check mark to
'Confirm Conversion at Open')

From that list, choose 'MS Excel Worksheets via DDE (*.xls)', and your
formatting will be retained.

If you have to connect through a different source, you can format the
fields in the Word document. For example, to specify a number of decimals:

1. In Word, in the Main Document, press Alt+F9 to view the field codes.
2. Find the field code for the number. It will look something like:
{ MERGEFIELD FieldName }
3. Add a switch, to format the number with two decimal places.
For example:
{ MERGEFIELD FieldName \# "#,##0.00" }
4. Press Alt+F9 to hide the field codes.
5. Save the Main Document

(I bet you could modify it for your situation.)

Altaf Choudry wrote:

I can put leading zero by changeing the cell format, but when I rum mail
merge through and attach an Excel file, my leading zero are missing. For
example, Newark, NJ 07102 (it will display and print 7102). It happens in all
MS Office versions released after Office 2000.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Mail merge does not show leading zero in Zip Code

Another way would be to fix them in place with a macro.
Fix up for 5 digit US zip codes (#fixUSzip5)
http://www.mvps.org/dmcritchie/excel/join.htm#fixUSzip5

Format the column as text ahead of running the macro.
For notes on Mail Merge see
http://www.mvps.org/dmcritchie/excel/mailmerg.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Frank Kabel" wrote in message ...
Hi
one way: use a helper column with a formula such as
=TEXT(A1,"00000")


"Altaf Choudry" <Altaf schrieb im...
I can put leading zero by changing the cell format, but when I run mail
merge through and attach an Excel file, my leading zero are missing.
For example, Newark, NJ 07102 (it will display and print 7102). It
happens in all MS Office versions released after Office 2000.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Leading 0 in Mail Merge document Karina Excel Discussion (Misc queries) 5 February 4th 09 05:16 PM
mail merge in excel/losing leading zero Stacie Excel Discussion (Misc queries) 1 July 14th 08 05:50 AM
First zero doesn't show up in zip code mail merge. DLencz Excel Worksheet Functions 1 November 12th 07 08:30 PM
Code launches Mail Merge but disables the Mail Merge austris Excel Discussion (Misc queries) 0 October 14th 06 01:11 AM


All times are GMT +1. The time now is 06:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"