A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word wrap mailmerge fields in a table



 
 
Thread Tools Display Modes
  #1  
Old August 5th, 2009, 07:16 PM posted to microsoft.public.word.mailmerge.fields
Fev
external usenet poster
 
Posts: 27
Default 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  
Old August 5th, 2009, 09:43 PM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default 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  
Old August 6th, 2009, 05:52 AM posted to microsoft.public.word.mailmerge.fields
Fev
external usenet poster
 
Posts: 27
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.