Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
DeepThought DeepThought is offline
external usenet poster
 
Posts: 5
Default dynamically inserting/deleting table rows

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?
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default dynamically inserting/deleting table rows

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.

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

"DeepThought" wrote in message
...
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?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting rows or columns Rufus Tables 2 July 28th 07 12:42 AM
Deleting extra rows in table Gail Tables 2 February 15th 07 04:52 PM
Deleting Blank Rows in Word [email protected] Mailmerge 1 July 4th 05 08:40 PM
Deleting blank rows in all tables KWC via OfficeKB.com Tables 2 June 24th 05 05:33 PM
Word should include few table features (such as inserting rows) .. RaviS Tables 6 April 11th 05 02:45 PM


All times are GMT +1. The time now is 01:47 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"