Sign the Outlook VBA code with a digital certificate

If you don't want to change the Outlook security setting from MEDIUM to LOW, you can sign your VBA code.

In order to sign your Visual Basic for Applications (VBA) code in Microsoft Outlook, you will need to follow the following steps:

I. get a digital certificate. For the current use it is sufficient to use a self created certificate

  1. Start > Microsoft Office > Microsoft Office Tools > Digital Certificate for VBA projects
  2. give the certificate an appropriate name
  3. press ok

II. Apply the certificate to the Outlook code

  1. from Outlook, choose Tools > Macro > Visual Basic Editor
  2. press [Choose...] an select the digital certificate
  3. press OK

The code is now signed.