Template not behaving as I expected

K

KWarner

Using Word 2007

I have a template (fill in the contentcontrols) with Macros *.dotm. I
created a shortcut to the template so that when the shortcut is clicked, a
new document is opened based on the template. All of the macros work as
expected, until I save the newFile.docx and close. When I reopen the
newFile.docx, it asks for confirmation of running macros. The template is
opened along with the file, but none of the macros will run. I have several
ContentControl onExit methods that never get called. I have buttons on the
ribbon that claim the callback cannot be found.

I was hoping to have a fresh form for my people to fill out as they have the
time, save it, and then return to it later to finish filling it out. It is
vital that the macros be carried through to the saved file though, or I will
have to make do with a *.docm macro enabled document. That is my last choice
though, as each new user isn't guaranteed to start off with a fresh form.

Can anyone tell me where I am messing up?
 
K

KWarner

Well, this is getting embarrassing.
Originally, I created my form as a regular document (*.docm). Then, when I
was almost done(?) with the project, I decided it would work better as a
template. So, I did a FileSaveAs *.dotm. Apparently, Word doesn't like that.
I think it creates the file differently as a template than it does a regular
document. Anyway, to fix it, I created a new template and then copied all of
my stuff over to it. Now, everything is playing correctly.

Kevin
 

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