Suppress Blank Lines in Tables?

J

JohnJohn

Hello. I have a mail merge document with 5 rows (and 2 columns) that may or
may not have data in them. Does anyone know of any way (short of writing
macro code) to suppress the blank lines from printing in the table?

I KNOW you can suppress blank lines by not putting them into a table, but I
need to be able to left-align the values in the first column and right-align
the values in the second column. So alternatively, if anyone knows how I can
do THAT instead of suppressing blank rows in the table, I'll welcome that
suggestion too.

Thanks!
John
 
D

Doug Robbins - Word MVP

For only 5 rows, it's hardly worth the effort to try and automate it.

--
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
 
J

JohnJohn

I couldn't agree more. The problem is that my client couldn't agree less. :|

I have to figure this out quickly.
 
D

Doug Robbins - Word MVP

I assume that the main document contains more than just this table which
will rule out using a catalog or directory type mail merge. If that were
not the case, you might be able to use the following in the first cell of a
one row table in a catalog or directory type mail merge main document

{ IF { MERGEFIELD FirstMergeField } = "" { IF { MERGEFIELD
SecondMergeField } = "" { NEXT RECORD } { MERGEFIELD FirstMergeField } } {
MERGEFIELD FirstMergeField } }

Otherwise, you will need to use a macro which was not wanted.

--
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top