If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Word wrap mailmerge fields in a table
I have a table of 4 columns but 1 row in a mailmerge document with
multiple IF fields to test whether to merge the information. An example of the logic is: {if {MERGEFIELD "STRPeriod1"}"" "{MERGEFIELD STRAmt1" \# R,0.00}" ""} {if {MERGEFIELD "STRPeriod2"}"" "{MERGEFIELD STRAmt2" \# R, 0.00}" ""} For each column there are 20 IF statements with the mergefields numbered 1 -20. The table properties are set not to autofit. I need to have all true results appear on new lines inside the table, but not to leave empty lines for false results. I have tried setting a decimal tab in the column and inserting a "hard tab" Ctrl Tab before each new If statement without success. I have also tried using the Symbol field and the Advance field without success. I would appreciate any suggestions as I have 8 similar documents that will need to use this type of feature in a large merge system. I am testing this in both Word 2003 and Word 2007. Thanks |
#2
|
|||
|
|||
Word wrap mailmerge fields in a table
In your field construction, press the Enter key when the selection is in the
location where I have inserted the ¶ following construction {if {MERGEFIELD "STRPeriod1"}"" "{MERGEFIELD STRAmt1" \# R,0.00}¶" ""} {if {MERGEFIELD "STRPeriod2"}"" "{MERGEFIELD STRAmt2" \# R, 0.00}¶" ""} -- 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, originally posted via msnews.microsoft.com "Fev" wrote in message ... I have a table of 4 columns but 1 row in a mailmerge document with multiple IF fields to test whether to merge the information. An example of the logic is: {if {MERGEFIELD "STRPeriod1"}"" "{MERGEFIELD STRAmt1" \# R,0.00}" ""} {if {MERGEFIELD "STRPeriod2"}"" "{MERGEFIELD STRAmt2" \# R, 0.00}" ""} For each column there are 20 IF statements with the mergefields numbered 1 -20. The table properties are set not to autofit. I need to have all true results appear on new lines inside the table, but not to leave empty lines for false results. I have tried setting a decimal tab in the column and inserting a "hard tab" Ctrl Tab before each new If statement without success. I have also tried using the Symbol field and the Advance field without success. I would appreciate any suggestions as I have 8 similar documents that will need to use this type of feature in a large merge system. I am testing this in both Word 2003 and Word 2007. Thanks |
#3
|
|||
|
|||
Word wrap mailmerge fields in a table
On Aug 5, 10:43*pm, "Doug Robbins - Word MVP"
wrote: In your field construction, press the Enter key when the selection is in the location where I have inserted the ¶ following construction {if {MERGEFIELD "STRPeriod1"}"" "{MERGEFIELD STRAmt1" \# R,0.00}¶" ""} {if {MERGEFIELD "STRPeriod2"}"" "{MERGEFIELD STRAmt2" \# R, 0.00}¶" ""} -- 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, originally posted via msnews.microsoft.com"Fev" wrote in message ... I have a table of 4 columns but 1 row in a mailmerge document with multiple IF fields to test whether to merge the information. *An example of the logic is: {if {MERGEFIELD "STRPeriod1"}"" "{MERGEFIELD STRAmt1" \# R,0.00}" ""} {if {MERGEFIELD "STRPeriod2"}"" "{MERGEFIELD STRAmt2" \# R, 0.00}" ""} For each column there are 20 IF statements with the mergefields numbered 1 -20. *The table properties are set not to autofit. *I need to have all true results appear on new lines inside the table, but not to leave empty lines for false results. *I have tried setting a decimal tab in the column and inserting a "hard tab" Ctrl Tab before each new If statement without success. *I have also tried using the Symbol field and the Advance field without success. *I would appreciate any suggestions as I have 8 similar documents that will need to use this type of feature in a large merge system. *I am testing this in both Word 2003 and Word 2007. Thanks- Hide quoted text - - Show quoted text - Thanks so much. Such a simple answer, and I have been looking at all the complex answers. |
Thread Tools | |
Display Modes | |
|
|