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 / July 2006

Tip: Looking for answers? Try searching our database.

Skip mail merge fields from Excel when blank/zero

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
limbikani@gmail.com - 16 Jul 2006 15:00 GMT
I am creating mail merge letters (pay-slips) in Word 2003 from a list
of about 300 employee records in Excel.

The list has 28 fields and some of the values in some of the fields in
the workbook are blank or zero.

What I need is that, when a value is blank or zero, then that field
(both field name and value) dosen't show at all on the letter so as to
make each pay slip contain only data that is non-zero and therefore
relevant to its recipient. E.g. if the 'Overtime' field for a record is
blank/zero (meaning this employee does ont receive overtime) then that
field doesnt even show on the letter.

In the letter, each filed is in its own row in a table. I've tried
using the "IF...Then...Else" condition for mail merge but it leaves a
space in the row when a field is blank/zero resulting in too may empty
rows in the letter.

I'm looking for a solution to taking only the fields I want from the
Excel sheet. Also, If there's a way to to automatically remove the
empty rows in the table when they're blank I'd finish of the solution
I'd started. Hope this makes sense.

Thanks in advance
Doug Robbins - Word MVP - 16 Jul 2006 15:43 GMT
See response in vba.beginners newsgroup.  Please do not post the same
question separately to multiple newsgroups.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I am creating mail merge letters (pay-slips) in Word 2003 from a list
> of about 300 employee records in Excel.
[quoted text clipped - 20 lines]
>
> Thanks in advance
 
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.