S
Sam
Hi All
I'm looking for some information/advice on writing an IF statement (or
whatever will work best) here is the back ground info:
I'm writing a mail merge document to send out to our vendors asking them to
sign on to our automated invoicing system. There are many different parts of
our company, with separate trading ABN's so I need to have the vendor sign a
separate legal document for each area.
I want to insert the relevant legal document into the letter depending on
whether or not the vendor detals with that area of our business.
E.g:
Vendor A deals with Iron Ore, Petroleum and Coal so I want to insert the
file for the legal document for each.
Vendor B deals with only Iron Ore and Petroleum so I only want to insert the
file for those 2.
I was trying to write an If statement along the lines of
{IF {MERGEFIELD A} = "Iron Ore" "{INCLUDETEXT "C:\RCTI\io.doc"
\*MERGEFORMAT}" ""}
But I'm not sure how to get this to look at all the different variables,
I've tried nesting the IF statements but it seems to get completely confused
and doesn't pull back the right data.
I'm using Excel 2003 as a data source and Word 2003 for the letter.
Thanks
Sam.
I'm looking for some information/advice on writing an IF statement (or
whatever will work best) here is the back ground info:
I'm writing a mail merge document to send out to our vendors asking them to
sign on to our automated invoicing system. There are many different parts of
our company, with separate trading ABN's so I need to have the vendor sign a
separate legal document for each area.
I want to insert the relevant legal document into the letter depending on
whether or not the vendor detals with that area of our business.
E.g:
Vendor A deals with Iron Ore, Petroleum and Coal so I want to insert the
file for the legal document for each.
Vendor B deals with only Iron Ore and Petroleum so I only want to insert the
file for those 2.
I was trying to write an If statement along the lines of
{IF {MERGEFIELD A} = "Iron Ore" "{INCLUDETEXT "C:\RCTI\io.doc"
\*MERGEFORMAT}" ""}
But I'm not sure how to get this to look at all the different variables,
I've tried nesting the IF statements but it seems to get completely confused
and doesn't pull back the right data.
I'm using Excel 2003 as a data source and Word 2003 for the letter.
Thanks
Sam.