Discussion:
word 2003 and autoexec macro
(too old to reply)
Dan
2004-09-09 13:09:22 UTC
Permalink
I have created a global addin by saving a template with some macros in the
startup word path; the addin has an autoexec macro which initializes some
objects. While the same code worked fine in previous versions of Word, Word
2003 seems to refuse to execute the autoexec macro, so that I get the
"object reference not set to an instance of an object" error whenever I
start word and my addin is loaded. How can I let Word 2003 run the AutoExec
macro in my addin as expected?

Thanx to all!
JB
2004-09-14 04:44:41 UTC
Permalink
Post by Dan
I have created a global addin by saving a template with some macros in the
startup word path; the addin has an autoexec macro which initializes some
objects. While the same code worked fine in previous versions of Word, Word
2003 seems to refuse to execute the autoexec macro, so that I get the
"object reference not set to an instance of an object" error whenever I
start word and my addin is loaded. How can I let Word 2003 run the AutoExec
macro in my addin as expected?
Thanx to all!
Need some more info on what your trying to do and whats in your
AutoExec. It might be that the AutoExec is running but just doesn't
like your code! I had problems going to 2002/3 with references but it
was mainly my code :-)

If the AutoExec is not running then is it maybe security settings? try
signing the file.

Cheers

J
Dan
2004-09-17 14:18:41 UTC
Permalink
Thanks! My autoexec just instantiates a vba class, which will then be used
by other macros in my addin. If I step into it with the debugger and then
launch any other macro in the addin, everything works fine, so I should
exclude a code error. I'll try to sign it using a self-certificate...
Need some more info on what your trying to do and whats in your AutoExec.
It might be that the AutoExec is running but just doesn't like your code!
I had problems going to 2002/3 with references but it was mainly my code
:-)
If the AutoExec is not running then is it maybe security settings? try
signing the file.
Cheers
J
Loading...