K
Kees van Amerongen
Hi,
we use a software package that merges the data with Word documents thru
macrobuttons.
When setting an address for a letter this looks like
{MacroButton CompanyXValue "Name Relation"}
{MacroButton CompanyXValue "Attn. line"}
{MacroButton CompanyXValue "Address Line"}
{MacroButton CompanyXValue "Place Line"}
this all works fine.
Sometimes however is the "Name Relation" the same as "Attn. line" and then
i want to exclude the "Attn. Line"
I thought to do this by the following code :
{if "{MacroButton CompanyXValue "Name Relation"}" <> "{MacroButton
CompanyXValue "Attn. Line"}"
"{MacroButton CompanyXValue "Attn. Line"}" "" }
When i make such a structure with MergFields, then it works. This
construction with MacroButton doesn't work.
Can anybody tell me why this doesn't work or how i can get i to work ?
thanks
Keam
we use a software package that merges the data with Word documents thru
macrobuttons.
When setting an address for a letter this looks like
{MacroButton CompanyXValue "Name Relation"}
{MacroButton CompanyXValue "Attn. line"}
{MacroButton CompanyXValue "Address Line"}
{MacroButton CompanyXValue "Place Line"}
this all works fine.
Sometimes however is the "Name Relation" the same as "Attn. line" and then
i want to exclude the "Attn. Line"
I thought to do this by the following code :
{if "{MacroButton CompanyXValue "Name Relation"}" <> "{MacroButton
CompanyXValue "Attn. Line"}"
"{MacroButton CompanyXValue "Attn. Line"}" "" }
When i make such a structure with MergFields, then it works. This
construction with MacroButton doesn't work.
Can anybody tell me why this doesn't work or how i can get i to work ?
thanks
Keam