D
David F
We have created an elaborate estimating sheet in Excel and would like to
use automation to create a printed contract for the customer to sign.
How to do the automation has me a little puzzled, so I'm asking for some
general guidelines. Here's my general approach.
1) Excel sheet produces all estimating values
2) Click custom toolbar button to start Word and make a document based
on a template.
3) The template has custom styles, autotext, and graphics already
defined.
4) A form will be provided for the user to make certain choices. These
insert different autotext entries, etc.
5) The user will likely edit the document before printing it.
QUESTION
Which ap should do the automation controlling--Excel or Word?
I preferred for Word to read the data from the workbook, but cannot
figure out how to make a reference to an instance of an Excel workbook
that is already running. (GetObject seems to want to open an ap and its
file from disk.) Is there a way? A few code snippets would be great!
Thanks in advance.
(Of course Excel could do the automation, but I anticipate many more
changes in the Word template. Thus it seems more reasonable for Word to
do the automation.)
David F.
use automation to create a printed contract for the customer to sign.
How to do the automation has me a little puzzled, so I'm asking for some
general guidelines. Here's my general approach.
1) Excel sheet produces all estimating values
2) Click custom toolbar button to start Word and make a document based
on a template.
3) The template has custom styles, autotext, and graphics already
defined.
4) A form will be provided for the user to make certain choices. These
insert different autotext entries, etc.
5) The user will likely edit the document before printing it.
QUESTION
Which ap should do the automation controlling--Excel or Word?
I preferred for Word to read the data from the workbook, but cannot
figure out how to make a reference to an instance of an Excel workbook
that is already running. (GetObject seems to want to open an ap and its
file from disk.) Is there a way? A few code snippets would be great!
Thanks in advance.
(Of course Excel could do the automation, but I anticipate many more
changes in the Word template. Thus it seems more reasonable for Word to
do the automation.)
David F.