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 / August 2004

Tip: Looking for answers? Try searching our database.

Suppress Blank Table Rows in Mail Merge

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brett - 16 Aug 2004 03:37 GMT
Hi Everyone

I have a mail merge document that contains a table with 5
rows of information and a number of columns.  When the
data is generated I may have from between 1 to 5 rows of
information depending upon the data stored for each
person.  For those people that only have 1 row of non-
blank information I get 4 blank lines in the middle of the
letter.  Is there anyway to dynamically resize the table
to ignore these blanks data lines.  I cannot change the
source data as it will vary from 1 line of data to 5 lines
of data for each person and given the volumes I do not
which to do multiple runs.

Any ides

Brett
Roplab - 17 Aug 2004 17:00 GMT
Hi Brett,
            I hope this will help you out there is a SuppressBlankLines
Property in Word VBA that you could use. Below is an example on how it
works.

Set myDoc = Documents.Open(Filename:="C:\Main.doc")
with myDoc
  .SuppressBlankLines = True
  .Destination = WdSendToPrinter(or any of the other parameter i.e
wdFormLetters)
  .Execute
End With

I hope this answers your question

Good luck
-Ralph-

> Hi Everyone
>
[quoted text clipped - 13 lines]
>
> Brett
 
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.