Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
how to create cells in table using if statements in word
I am trying to create a table in word using data from a data source. I am
wondering if there is a way to create a new row in the table only if there is data to be entered in that row. Is there some statement or some way to only add the new row to the table based on the results from an IF statement? |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
how to create cells in table using if statements in word
Unfortunately, as soon as you try to use an IF field to insert a table row,
you get an extra paragraph mark which breaks up the table. Worse, empty paragraphs between table rows are remarkably difficult to remove either using Edit|Replace or even VBA macros. Possible approaches depend on what exactly you're trying to achieve. if you're just trying to insert one table, Insert|Database may be enough. If you're trying to do a merge with "multiple items per condition", Word isn't designed to do it and you might be better off using Access reporting or some such. But see for example: http://homepage.swissonline.ch/cindy...faq1.htm#DBPic http://support.microsoft.com/default...b;en-us;211303 http://www.knowhow.com/Guides/Compou...poundMerge.htm Peter Jamieson "DMAX" wrote in message ... I am trying to create a table in word using data from a data source. I am wondering if there is a way to create a new row in the table only if there is data to be entered in that row. Is there some statement or some way to only add the new row to the table based on the results from an IF statement? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word should catalog misspelled words to study. | Microsoft Word Help | |||
How to put graphics on envelopes? | Microsoft Word Help | |||
linking and sequential numbering of tables | Tables | |||
Change paper size; Word changes to invalid margins | New Users | |||
How do I create Word macro that will run properly using copy/past. | Microsoft Word Help |