C
Cheryle Dyk
In our fax template (and many others), I prompt the user with a dialog box
for information including which office they are in (different addresses).
Then I populate the document with information they entered in the dialog box.
Based on which office they selected, I set up the footer and use an autotext
entry to get the appropriate address. At least in Office 2003 it worked okay.
But autotexts are not working in the footer of the document based on
fax.dotm. The autotext works fine in the body of the document. And the
autotext works fine in the body and footer of documents based on normal.
The autotexts are stored in a .dotm file that is located in the startup
directory.
I was looking in VBA for a way to make the startup .dotm file recognized as
the/an attached template. Seems like it might work that way. Or perhaps there
is another way to do this?
I can put the addresses into the code, but am looking for a way to use these
autotexts first.
I also tried to create a footer buiding block (there would be one for each
office and it could be used for many different things within Word), but I
couldn't get the VBA code to work with that either. I can select the footer
by hand, but a recorded macro didn't work... Perhaps there is some code that
would allow me to use the footer building blocks...
Thanks for any help
for information including which office they are in (different addresses).
Then I populate the document with information they entered in the dialog box.
Based on which office they selected, I set up the footer and use an autotext
entry to get the appropriate address. At least in Office 2003 it worked okay.
But autotexts are not working in the footer of the document based on
fax.dotm. The autotext works fine in the body of the document. And the
autotext works fine in the body and footer of documents based on normal.
The autotexts are stored in a .dotm file that is located in the startup
directory.
I was looking in VBA for a way to make the startup .dotm file recognized as
the/an attached template. Seems like it might work that way. Or perhaps there
is another way to do this?
I can put the addresses into the code, but am looking for a way to use these
autotexts first.
I also tried to create a footer buiding block (there would be one for each
office and it could be used for many different things within Word), but I
couldn't get the VBA code to work with that either. I can select the footer
by hand, but a recorded macro didn't work... Perhaps there is some code that
would allow me to use the footer building blocks...
Thanks for any help