P
Paul B
Using Word '03, I've noticed that when I open only one document,
I have VBA access to both that document's macro modules and those
of the normal.dot.
But when I open more than one document, the VBA editor will be
locked into the project that it initially gave focus to, and
macro projects of any other document, and that of normal.dot,
will be inaccessible. And that stays true even when all documents
are closed. The only way around it is to close and reopen Word
entirely.
I'm sure there's a security issue behind this behavior, but I
don't understand Ms's approach to the problem.
So my questions are two:
First, is there some way to circumvent this behavior? My macro
security setting is on Medium and I use the one instance of Word
option. I use a local certificate to sign my macro projects.
Second, lacking that, is there some way to have the first
document open giving the VBA project focus to normal.dot? That's
generally the project I want to keep access open to, and if the
focus starts there it will be maintained regardless of opening
other documents. Currently the focus is being given to the module
of the first-open document (oftentimes, it will have an autoexec
macro there; I'm not sure if that's the deciding factor in giving
the initial focus to the document rather than normal.dot or not).
Thanks,
p.
I have VBA access to both that document's macro modules and those
of the normal.dot.
But when I open more than one document, the VBA editor will be
locked into the project that it initially gave focus to, and
macro projects of any other document, and that of normal.dot,
will be inaccessible. And that stays true even when all documents
are closed. The only way around it is to close and reopen Word
entirely.
I'm sure there's a security issue behind this behavior, but I
don't understand Ms's approach to the problem.
So my questions are two:
First, is there some way to circumvent this behavior? My macro
security setting is on Medium and I use the one instance of Word
option. I use a local certificate to sign my macro projects.
Second, lacking that, is there some way to have the first
document open giving the VBA project focus to normal.dot? That's
generally the project I want to keep access open to, and if the
focus starts there it will be maintained regardless of opening
other documents. Currently the focus is being given to the module
of the first-open document (oftentimes, it will have an autoexec
macro there; I'm not sure if that's the deciding factor in giving
the initial focus to the document rather than normal.dot or not).
Thanks,
p.