View Single Post
  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Nabellfl Nabellfl is offline
external usenet poster
 
Posts: 11
Default Delete a table row when mergefield is blank??

I create a form letter. The information of the letter is in a table.
Example:
{mergefield matter_name}
Co. File No. {mergefield matsup_cofile }
Etc.

This document is then merged. If there is no data in the cofile field of my
database I want to automoatically delete that table row from the merged
document.

I recorded a simple macro and created a toolbar button for it that the user
can use to delete the row after the merge but I wanted to find out if there
is a way to "nest" this macro in an If statement or something else???

I hope that clarifies what I am trying to do.

"Doug Robbins - Word MVP" wrote:

That cannot be done using mail merge. Tell us exactly what you are trying
to do.

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

"NaBellFL" wrote in message
...
I am using Word 2003. I have created a document which includes a table.
In
each row I have placed my { mergefield }. When I merge the document, if
there is no data for a field then I need the table row to be deleted. Can
I
use an {If, then, else} statement to accomplish this?

Any help is greatly appreciated.