A VBA macro in a trusted template add-in may stop running in Word (920628)



The information in this article applies to:

  • Microsoft Office Word 2003
  • Microsoft Word 2002
  • Microsoft Word 2000


SYMPTOMS

Consider the following scenario. A native Dynamic Data Exchange (DDE) command is used to open documents. You modify this command so that it calls a Visual Basic for Applications (VBA) macro in a template add-in. Then, you open a template add-in that includes a VBA macro. The security level for macros is set to High. In this scenario, a document that is not trusted that contains macros is opened in Windows Explorer. And, the macro in the trusted template add-in that is called during the open event may stop running.

CAUSE

When an Automation code calls a macro in another document that is not trusted, the code forces Visual Basic Editor to be disabled for that document and for the other macros that are loaded.

STATUS

This behavior is by design.

Modification Type:MajorLast Reviewed:6/13/2006
Keywords:kbScript kbProgramming kbAddIn kbExpertiseInter kbtshoot kbprb KB920628 kbAudKnowledgeWorker