Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Eliminate blank fields in mail merge from Excel to Word

I'm merging address fields from an Excel 2007 spreadsheet to create labels in
Word 2007. Not all of the labels use all of the address fields, so a blank
line on the resultant address label often occurs. How can I eliminate these
blank lines? I seem to recall that in earlier versions of Excel and/or Word
this either happened automatically or there was a prompt asking if blank
fields should be ignored.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default Eliminate blank fields in mail merge from Excel to Word

Hi Sheila,

Are you using Word's 'AddressBlock' field, or individual fields? AFAIK, the former doesn't allow blank line suppression. For the
latter (in Word):
.. duplicate the mailmerge field to be suppressed (eg «MyData») so that you get «MyData»«MyData»;
.. select both fields and Press Ctrl-F9 to enclose them in a new field, thus { «MyData»«MyData» };
.. fill in between the braces so that you end up with {IF«myData»= "" "" "«MyData»¶
"}, where the '¶' is a paragraph mark or line-feed, depending on which you're using;
.. delete the existing paragraph mark or line-feed after the field;
.. position the cursor anywhere in this field and press F9 to update it;
.. run your mailmerge.

--
Cheers
macropod
[Microsoft MVP - Word]


"Sheila" wrote in message ...
I'm merging address fields from an Excel 2007 spreadsheet to create labels in
Word 2007. Not all of the labels use all of the address fields, so a blank
line on the resultant address label often occurs. How can I eliminate these
blank lines? I seem to recall that in earlier versions of Excel and/or Word
this either happened automatically or there was a prompt asking if blank
fields should be ignored.


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
merge two excel files like in word mail merge azmerritt Excel Discussion (Misc queries) 1 December 11th 16 09:23 PM
Excel to Word Mail Merge Jayesh Excel Discussion (Misc queries) 2 June 20th 09 02:05 PM
Help please with Excel 03 for mail merge with Word 03! Mldapril17 Excel Discussion (Misc queries) 0 September 17th 08 05:22 AM
Mail Merge with Excel and Word RSJAAG Excel Discussion (Misc queries) 1 July 1st 08 04:55 PM
Merge mail excel to word T. Rebouche Excel Discussion (Misc queries) 2 February 21st 05 11:05 PM


All times are GMT +1. The time now is 11:48 PM.

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

About Us

"It's about Microsoft Excel"