H
HeatherO
I think I might be in way over my head, so I am just looking for any help or
suggestions to help me sort this out. Anyways I have a word document which I
want to put data into from an excel spreadsheet.
Here's basically how the document is there is a prompt for the end user to
input the date and then there are some basic places to put data (which I know
I can do with a Mail merge). However there is stuff like if the person
doesn't have this in the field or it's a blank don't print it or the header
i.e. points card: {MergeField pntscrd}.
To make matters worse there are 2 tables as well and in the tables I am to
put information in that might have one or more lines depending on data in
excel file. The data is by account and therefore might have 2 rows with same
account but the document is by account. Which I don't think I can do with
the mail merge so I will somehow need to create I believe a sub routine to
put the data into the table based on the account # from the mail merge.
The second table is taking the values from the first and doing a vlookup to
another excel spreadsheet and putting the data from the 2nd spreadsheet into
it (basically details). I've tried using if statements in mail merge and for
some reason they don't work. I don't know if it 's because I am saying if
{mergefield Col.P} > 0 then {MergeField Col. Q} this is of course with a
mail merge.
TIA
Heather
p.s. I am also finding it hard to record macros with the mail merge utility
I can't right click on the field and edit it that way while running a record
macro which is annoying.
suggestions to help me sort this out. Anyways I have a word document which I
want to put data into from an excel spreadsheet.
Here's basically how the document is there is a prompt for the end user to
input the date and then there are some basic places to put data (which I know
I can do with a Mail merge). However there is stuff like if the person
doesn't have this in the field or it's a blank don't print it or the header
i.e. points card: {MergeField pntscrd}.
To make matters worse there are 2 tables as well and in the tables I am to
put information in that might have one or more lines depending on data in
excel file. The data is by account and therefore might have 2 rows with same
account but the document is by account. Which I don't think I can do with
the mail merge so I will somehow need to create I believe a sub routine to
put the data into the table based on the account # from the mail merge.
The second table is taking the values from the first and doing a vlookup to
another excel spreadsheet and putting the data from the 2nd spreadsheet into
it (basically details). I've tried using if statements in mail merge and for
some reason they don't work. I don't know if it 's because I am saying if
{mergefield Col.P} > 0 then {MergeField Col. Q} this is of course with a
mail merge.
TIA
Heather
p.s. I am also finding it hard to record macros with the mail merge utility
I can't right click on the field and edit it that way while running a record
macro which is annoying.