Microsoft Outlook 2013: Error verify VBA project signature

BerndGit picture BerndGit · Jun 3, 2015 · Viewed 8.7k times · Source

After a computer reset I wanted to use my VBA Macros for Outlook 2013.

In Outlook I get the error message:

"An errror occured while attempting to verify the VBA project's signature. Macros will be disabled."

Consequently the VBA editor states:

"The macros in this project are disabled. [..]"

I have tried:

  1. Developer -> Macro Security -> (*) Enable all Macros (not only digitally signed)

  2. Define a certificate using

    C:\Program Files (x86)\Microsoft Office\Office15\selfcert.exe
    

Nothing worked. Any idea?

Answer

adam picture adam · Jan 23, 2018

Having come across this just now, this is how I ultimately solved it (none of the other suggestions worked for me):

  1. Create a self cert – I called mine “Self Cert” (generated from here in Office 2013 - C:\Program Files (x86)\Microsoft Office\Office15\SELFCERT.EXE)
  2. Run certmgr.crt from the start menu and copy “Self Cert” from “Personal\Certificates” to the “Trusted Root Certification Authorities\Certificates” folder
  3. Open Outlook.exe as Administrator
  4. Open VBA (i.e. Developer -> Visual Basic)
  5. Open your module containing the VBA code
  6. Select Tools -> Digital Signature -> Choose...
  7. Select OK to select “Self Cert” (VB then shows the project as being signed with this certificate) then click OK again accept and close the window
  8. Click to save the macro in VBA – actually click the save button in VB (bizarrely it breaks if you don’t expressly save here)
  9. Close VBA
  10. Close Outlook, and choose Yes to save the VBA project
  11. Restart Outlook.exe again as Administrator
  12. Either now, or after you go “Developer -> Visual Basic” again, a window should pop-up prompting you about the newly signed macro – I clicked remember and don’t prompt again
  13. Macros should now work! I'm using them as part of an email rule and this now processes perfectly.

I’m not strictly sure you need to run Outlook as an administrator in the above, but it now works without being run as an administrator so I’m happy.

Thanks to this resource for getting this working for me! I've basically just updated, consolidated and expanded on answers given. https://social.technet.microsoft.com/Forums/en-US/07f0158c-085b-4031-93a1-c9d047cf855c/unable-to-sign-outlook-2010-vbaproject?forum=outlook