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:
  1. Start Visio, and then open your drawing.
  2. Press ALT+F11 to start Visual Basic for Applications.
  3. Add a simple procedure with which to modify your macro project. To do this, follow these steps:
    1. In the Project Explorer window, double-click ThisDocument.
    2. In the Code window, type the following:
      Sub ModifyTest()
         MsgBox ("It's modified now!")
      End Sub
      						
  4. On the Tools menu, click Digital Signature.
  5. In the Digital Signature dialog box, click Choose.
  6. Click the certificate that you want to use, and then click OK twice.
  7. Press CTRL+S to save your drawing.
  8. Quit Visual Basic for Applications, and then quit Visio.

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).

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.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kbfix KB305633