Signer une macro

Quand on ajoute une macro à Outlook, un message Security Notice apparaît à chaque démarrage d’Outlook.

Security Notice

Pour ne plus avoir ce popup, il faut signer la macro.

Microsoft Office propose un outil pour créer un certificat local qui permet, ensuite, de signer sa macro.

L’explication ci-dessous est extraite de l’aide d’Outlook :

1. Create a self-signing certificate

  1. Click Start, point to All Programs, click Microsoft Office, click Microsoft Office Tools, and then click Digital Certificate for VBA Projects. The Create Digital Certificate dialog box appears.
  2. In the Your certificate's name box, type a descriptive name for the certificate.
  3. Click OK.
  4. When the SelfCert Success message appears, click OK. Create Digital Signature dialog

2. View the certificate by using Internet Explorer

To view the certificate in the Personal Certificates store, do the following:

  1. Open Internet Explorer.
  2. On the Tools menu, click Internet Options, and then click the Content tab.
  3. Click Certificates, and then click the Personal tab.

3. Digitally sign a macro project in Excel, PowerPoint, Publisher, Visio, Outlook, or Word

  1. Open the file that contains the macro project that you want to sign.
  2. On the Developer tab, in the Code group, click Visual Basic.
  3. In Visual Basic, on the Tools menu, click Digital Signature.
  4. The Digital Signature dialog appears.
  5. Select a certificate and click OK.