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 2007

Tip: Looking for answers? Try searching our database.

dynamically inserting/deleting table rows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DeepThought - 30 Jul 2007 14:52 GMT
If there is no data in the merge field in my data source, I want the blank
row to be deleted allowing the next row containing data to move up into where
the blank row used to be.

How do I do this?
Doug Robbins - Word MVP - 30 Jul 2007 20:55 GMT
Use an If...then...Else field construction in the mail merge main document
that tests for the existence of data in the field

{ IF { MERGEFIELD field1 } = "" "{ MERGEFIELD field2 }" "{ MERGEFIELD
field1 } <Enter>
{ MERGEFIELD field 2 }" }

Press the Enter key (or Shift+Enter) in place of  <Enter> above so that the
{ MERGEFIELD field 2 }" } is on a separate line.

You must use Ctrl+F9 to insert each pair of field delimiters { } and Alt+F9
to toggle off their display.

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

> If there is no data in the merge field in my data source, I want the blank
> row to be deleted allowing the next row containing data to move up into
> where
> the blank row used to be.
>
> How do I do this?
 
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.