2007 Autotext in Footer? Or Footer Building Blocks?

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
 
C

Cindy M.

Hi Cheryl,

You need to show us the code you've been using that's stopped working for 2007.
(The part that works with AutoText in the footer.)
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...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top