Automatic execution of vBA code when a word document is opened

A

Arlan

I have created a template with forms, modules and a document_open.cls in the
'ThisDocument' document-open event handler under the project. The
document-open code sets up a custom toolbar that with tools that call
routines in the VBA module.

When I copy the template file (.doc) to the startup folder and check it in
the global templates dialog, the vba code is loaded with each new doucment,
but
 
J

Jean-Guy Marcil

Arlan was telling us:
Arlan nous racontait que :
I have created a template with forms, modules and a document_open.cls
in the 'ThisDocument' document-open event handler under the project.
The document-open code sets up a custom toolbar that with tools that
call routines in the VBA module.

When I copy the template file (.doc) to the startup folder and check
it in the global templates dialog, the vba code is loaded with each
new doucment, but

but...?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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