D
Dave
A maintenance app opens a Word document. Using the vbe, I created a
simple document_open sub in ThisDocument that will not run. It's my
understanding that regardless of whatever auto macros that may exist
in a template that this document is based on, a document_open sub
should run when the document is opened.
Notes: My macro security is set to low. In the vbe, a count of all
open documents returns 1 (looking for hidden documents that may be
affecting code). I ran through the CustomDocumentProperties and
BuiltinDocumentProperties in the debug window. There are no custom
properties; saw nothing built-ins to indicate code has been disabled.
The document is not protected (Tools>Protect Document is still
available; protectiontype = -1). A test document saved in my directory
will run the code.
There is no chance of knowing how the app opens the document, so how
can I determine if it is setting a property that disables code not
native to its template? All I want to do is automatically open a
linked file represented by an icon (inline shape??) in the document
when it opens. Help would be much appreciated. Thanks.
simple document_open sub in ThisDocument that will not run. It's my
understanding that regardless of whatever auto macros that may exist
in a template that this document is based on, a document_open sub
should run when the document is opened.
Notes: My macro security is set to low. In the vbe, a count of all
open documents returns 1 (looking for hidden documents that may be
affecting code). I ran through the CustomDocumentProperties and
BuiltinDocumentProperties in the debug window. There are no custom
properties; saw nothing built-ins to indicate code has been disabled.
The document is not protected (Tools>Protect Document is still
available; protectiontype = -1). A test document saved in my directory
will run the code.
There is no chance of knowing how the app opens the document, so how
can I determine if it is setting a property that disables code not
native to its template? All I want to do is automatically open a
linked file represented by an icon (inline shape??) in the document
when it opens. Help would be much appreciated. Thanks.