R
rael_lucid
Hi everyone,
Not an experienced Word programmer but have experience with Access and Excel
VBA.
I am trying to write some code which applies a user specified document
template to the current document.
The user will select the document template from a combobox (choice of:
Email, Letter, Fax) and I would like my program to then apply the formatting
of the template to the current document. Formatting includes all styles etc,
but also includes headers, footers and images.
I have noticed that there is a command ActiveDocument.AttachedTemplate
which handles the styles only. I am looking for more than this obviously.
Is there a command that I have overlooked or will I have to write code to
copy the text of the active document, open the template and then paste the
text into the template? This method will work, but it seems a little messy
and inefficient.
Any ideas appreciated!
Rael
Not an experienced Word programmer but have experience with Access and Excel
VBA.
I am trying to write some code which applies a user specified document
template to the current document.
The user will select the document template from a combobox (choice of:
Email, Letter, Fax) and I would like my program to then apply the formatting
of the template to the current document. Formatting includes all styles etc,
but also includes headers, footers and images.
I have noticed that there is a command ActiveDocument.AttachedTemplate
which handles the styles only. I am looking for more than this obviously.
Is there a command that I have overlooked or will I have to write code to
copy the text of the active document, open the template and then paste the
text into the template? This method will work, but it seems a little messy
and inefficient.
Any ideas appreciated!
Rael