Visio2002: Security Warning Is Not Displayed When You Open a Visio File That Contains a Digitally Signed Macro (305633)
The information in this article applies to:
- Microsoft Visio 2002 Standard
- Microsoft Visio 2002 Professional
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 ("It's modified now!")
End Sub
- On the Tools menu, click Digital Signature.
- In the Digital Signature dialog box, click Choose.
- Click the certificate that you want to use, and then click OK twice.
- Press CTRL+S to save your drawing.
- Quit Visual Basic for Applications, and then quit Visio.
STATUSMicrosoft 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).
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbfix KB305633 |
---|
|