Microsoft KB Archive/920628

= A VBA macro in a trusted template add-in may stop running in Word =

Article ID: 920628

Article Last Modified on 6/13/2006

-

APPLIES TO


 * Microsoft Office Word 2003
 * Microsoft Word 2002 Standard Edition
 * Microsoft Word 2000 Standard Edition

-





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.

Additional query words: macro security dde add-in

Keywords: kbtshoot kbscript kbaddin kbprogramming kbprb kbexpertiseinter KB920628

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.