Microsoft KB Archive/305633

= Visio2002: Security Warning Is Not Displayed When You Open a Visio File That Contains a Digitally Signed Macro =

Article ID: 305633

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft Visio 2002 Standard Edition
 * Microsoft Visio 2002 Professional Edition

-



This article was previously published under Q305633





SYMPTOMS
When you digitally sign a Microsoft Visual Basic for Applications macro project that is contained in a Microsoft Visio document, and then open the Visio document, the Security Warning dialog box that contains the digital certificate information is not displayed.



CAUSE
This behavior may occur if the macro project is not modified before it is digitally signed. When you digitally sign a Visual Basic for Applications macro project that is contained in a Visio document, the macro project must be modified in some way before a certificate is saved to it. If the macro project is not modified, a certificate is not saved to it, and the Security Warning dialog box is not displayed as expected when you open the Visio document that contains the macro.



RESOLUTION
To resolve this problem, obtain the latest service release for Microsoft Visio 2002. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

310474 Visio2002: How to Obtain and Install Visio 2002 Service Release 1

Temporary Workaround
To temporarily work around this problem, modify the macro project, digitally sign it, and then save your Visio document. To do this, follow these steps:  Start Visio, and then open your drawing. Press ALT+F11 to start Visual Basic for Applications. Add a simple procedure with which to modify your macro project. To do this, follow these steps:  In the Project Explorer window, double-click ThisDocument.  In the Code window, type the following: Sub ModifyTest MsgBox (&quot;It's modified now!&quot;) End Sub </ol> </li> On the Tools menu, click Digital Signature.</li> In the Digital Signature dialog box, click Choose.</li> Click the certificate that you want to use, and then click OK twice.</li> Press CTRL+S to save your drawing.</li> Quit Visual Basic for Applications, and then quit Visio.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Microsoft Visio 2002 Service Release 1 (SR-1).

<div class="moreinformation_section">

MORE INFORMATION
For additional information about digital certificates, click the article number below to view the article in the Microsoft Knowledge Base:

297142 Visio2002: Overview of Digital Certificates

For more information about macro security settings in Visio, click Microsoft Visio Help on the Help menu, type macro security in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

Additional query words: visio2002 vso2002 prb sr sr1 sp sp1 vb vba vbe

Keywords: kbbug kbfix KB305633

-

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

© Microsoft Corporation. All rights reserved.