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
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top