RECrerar
08-11-2009, 08:00 AM
Hi,
I've been tasked with writing a macro to automatically import data into a word document.
The main activities are to extract data from a table in an Excel spreadsheet and create a new table in word for each row. Before each table, two plots saved external to Excel need to be imported, these are identified by looking up their names from the Excel spreadsheet. Attached is a word doc with a commented version of what I am trying to achieve.
My question is simply, would it be best to write the code is word and connect to Excel or visa versa. I think the users would probably prefer to run everything through Wrod, but they are a bright bunch so I'm sure they could cope.
Any suggestions would be appreciated.
Thanks
I've been tasked with writing a macro to automatically import data into a word document.
The main activities are to extract data from a table in an Excel spreadsheet and create a new table in word for each row. Before each table, two plots saved external to Excel need to be imported, these are identified by looking up their names from the Excel spreadsheet. Attached is a word doc with a commented version of what I am trying to achieve.
My question is simply, would it be best to write the code is word and connect to Excel or visa versa. I think the users would probably prefer to run everything through Wrod, but they are a bright bunch so I'm sure they could cope.
Any suggestions would be appreciated.
Thanks