Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Heather Fabries Heather Fabries is offline
external usenet poster
 
Posts: 5
Default Mail Merge and Zip+4

I have a client who recently upgraded to Ofiice 2007. She is trying to do a
mail merge in Word 2007 using a Word 2003 template and Excel 2003 data
source. The mail merge works except for the zip codes. The 5 digit zip
codes show up in the mail merge but the zip+4 shows up as 0. In the Excel
spreadsheet, the zip codes are set up in one column and the zip odes are
either "special zip code" or "special zip+4". I have tried changing the
number setting, but the zip +4 still comes over as 0. It works perfectly
when I run it using Word 2003.

Thank you.
Heather Fabries

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Mail Merge and Zip+4

When you use Word 2003, are you using DDE to connect to the data source?
(You can probably tell because if you are, then if the workbook is not
already open, Excel should start, then open the workbook).

If so, the simplest solution in Word 2007 is probably to use DDE. To do
that,
a. check Word Office button-Word Options-Advanced-General-Confirm file
format conversion upon open
b. go through the connection process again. In the "Select Data Source"
dialog box, select the source, and click Open.
c. You should then see a dialog box titled "Confirm Data Source". In
previous versions of Word, a DDE option would be visible. However, in Word
2007, you probably just see "OLE DB Database Files". If you see "MS Excel
Worksheets via DDE (*.xls)", select it (even if your workbook is a .xlsx,
not a .xls). If not...
- Check the "Show all" box. A whole bunch of options are displayed,
most of which are irrelevant to an Excel data source.
- scroll down and select "MS Excel Worksheets via DDE (*.xls)"
d. Click OK. Excel should start if it is not already running, and should
open the workbook if it is not already open.

Otherwise, If you need to use the default connection method (OLE DB in both
WOrd 2003 and Word 2007) then you probably need to replace the Merge field
that inserts the ZIP code with something like the following:

{ IF { QUOTE "{ MERGEFIELD zip }99999" \#0 } 0
"{ MERGEFIELD zip }"
"{ IF { MERGEFIELD ZIP } 99999
"{ MERGEFIELD ZIP \#"00000'-'0000" }"
"{ MERGEFIELD ZIP \# "00000" }" }" }

where "zip" is the name of the column in the Excel workbook that contains
the ZIP codes, and all the {} are the special "field code braces" that you
can insert into Word using ctrl-F9. For more info. on this, please see the
recent conversation in this group titled "Switches/field codes to fix zip
code in merge"

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Heather Fabries" wrote in
message news
I have a client who recently upgraded to Ofiice 2007. She is trying to do
a
mail merge in Word 2007 using a Word 2003 template and Excel 2003 data
source. The mail merge works except for the zip codes. The 5 digit zip
codes show up in the mail merge but the zip+4 shows up as 0. In the Excel
spreadsheet, the zip codes are set up in one column and the zip odes are
either "special zip code" or "special zip+4". I have tried changing the
number setting, but the zip +4 still comes over as 0. It works perfectly
when I run it using Word 2003.

Thank you.
Heather Fabries


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: Can we have master detail relationship or multiple entities in word Mail-Merge? gmax2006 Microsoft Word Help 1 March 28th 07 06:28 PM
Take Mail Merge in Word back the the Mail Merge Helper 1,2,3 Form. Chris Green Mailmerge 5 October 8th 05 03:51 PM
collate pages in mail merge vs mail merge being single document Dan Schwab Mailmerge 2 September 14th 05 09:35 PM
Proteced Form with Mail Merge Section-Mail Merge is "lost" whe F. Ferrer Microsoft Word Help 0 February 2nd 05 08:27 PM
mail merge doc with further linked/embedded mail merge docs not playing the game Rob Cowlard Mailmerge 3 January 8th 05 09:15 AM


All times are GMT +1. The time now is 08:39 PM.

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"