The advice given by Signing your own macros with SelfCert.exe worked fine. I’m not going to duplicate the write-up, which has excellent visual aids. Here’s what I learned in my own words. Maybe this will help you avoid wading through the whole article. (That’s not to say it’s hard to read.)
Here are the steps:
- Create a self-signed certificate
- Sign the macro with the certificate
- Verify your Outlook security settings
- Run for the first time
Here are more details.
One needs to have a certificate to digitally sign one’s macros. For most of us, that means creating a self-signed certificate, which is probably why you searched for an answer to this problem. Office has a utility to do this. I have the 64-bit version of Office, so I ran C:Program FilesMicrosoft OfficerootOffice16SelfCert.exe (see the article I linked to for other versions).
In the VBA Editor (ALT+F11) where you created the macro, choose:
Tools-> Digital Signature…
You should see that the current VBA project isn’t signed yet. That’s the problem. Unlike 2013, when you press the Choose… button you’ll get a screen to select the certificate you just created. (Installation was automatic.)
Next navigate:
File-> Options-> Trust Center-> Trust Center Settings…-> Macro Settings
Ensure this option is selected: Notifications for digitally signed macros, all other macros disabled
Restart Outlook. When you exit, you’ll be prompted to save changes to your VBA project. Choose “Yes”.
When you run your newly-signed macro the first time, you’ll be notified. Select that you’ll always trust the macros or documents from this publisher and you won’t be prompted again.
The advice given by Signing your own macros with SelfCert.exe worked fine. I’m not going to duplicate the write-up, which has excellent visual aids. Here’s what I learned in my own words. Maybe this will help you avoid wading through the whole article. (That’s not to say it’s hard to read.)
Here are the steps:
- Create a self-signed certificate
- Sign the macro with the certificate
- Verify your Outlook security settings
- Run for the first time
Here are more details.
One needs to have a certificate to digitally sign one’s macros. For most of us, that means creating a self-signed certificate, which is probably why you searched for an answer to this problem. Office has a utility to do this. I have the 64-bit version of Office, so I ran C:Program FilesMicrosoft OfficerootOffice16SelfCert.exe (see the article I linked to for other versions).
In the VBA Editor (ALT+F11) where you created the macro, choose:
Tools-> Digital Signature…
You should see that the current VBA project isn’t signed yet. That’s the problem. Unlike 2013, when you press the Choose… button you’ll get a screen to select the certificate you just created. (Installation was automatic.)
Next navigate:
File-> Options-> Trust Center-> Trust Center Settings…-> Macro Settings
Ensure this option is selected: Notifications for digitally signed macros, all other macros disabled
Restart Outlook. When you exit, you’ll be prompted to save changes to your VBA project. Choose “Yes”.
When you run your newly-signed macro the first time, you’ll be notified. Select that you’ll always trust the macros or documents from this publisher and you won’t be prompted again.
Ошибка при запуске макроса, назначенного сертификату цифровой подписи в Outlook. Макрос в этом проекте отключены
В этом сценарии вы получаете сообщение об ошибке: ошибка произошла при попытке проверить подпись проекта VBA. Макрос будет отключен.
При попытке запуска макроса получается сообщение об ошибке: макрос в этом проекте отключен. Чтобы определить, как включить макросы, обратитесь к веб-справке или документации хост-приложения.
Причина
Эта проблема возникает, поскольку Visual Basic отменяет изменения, внесенные в проект, поэтому сертификат больше не назначен макрос.
Решение
Вручную сохраните изменения, внесенные в проект перед Visual Basic окна, используя один из следующих методов:
I have 2 Macros that work in other computers but in this computer they do not work. The error message is:
«The macros in this project are disabled. Please refer to the online help or documentation of the host application to determine how to enable macros.»
I looked at some of the documentation nothing worked.
In Outlook 2010 I went to :
>File>Options>Trust Center>Trust Center setting. >Macro Settings and Enabled All Macros
This did not fix any of the problems.
- Changed type Quist Zhang Monday, May 6, 2013 2:00 PM op claimed that the issue has been resolved
All replies
Eric Legault MVP (Outlook)
About me.
Outlook Appins: Store Social Media fields in your Outlook Contacts!
I fixed it by cutting all the macros then restarted Outlook and reinserted the macros.
- Edited by Philosophiae Wednesday, April 10, 2013 2:36 PM
What happens if you set it to «Notifications for all macros», and then restart? You should get prompted to enable macros.
Troubleshooting Outlook VBA
http://www.outlookcode.com/article.aspx?id=68
Eric Legault MVP (Outlook)
About me.
Outlook Appins: Store Social Media fields in your Outlook Contacts!
I too have been experience this. Very frustrating. I have a a myriad a code used to manage my inbox and other things.
For a while I was stuck at all security disabled. I think I managed to remove all the code.
Now I can get OUtlook to start w/o error/alerting, but anytime I goto the IDE/Dev panel I get prompted to disable macros, no choice.
ONce in the IDE, any options I choose, result in OLK hard crashing. 🙁
I had code Digital Certificate for VBA projects signed under 2010 and upgrade apart of 2013 pilot at work.
even thought all the VBA sub components look to be installed I do not see any new certificate app.
This could explain why deleting and pasting a module back in is a work around, as it does let you create and run a module the first time..
initially when i created a Module my settings were Notifications for digitally signed macros. (2nd option 2010). Outlook seems to let you create and run a module in VB IDE the first time- however if you leave outlook (or outlook crashes) and come back it says you can’t run macros. However setting enable all macros .
File>Options>Trust Center>Trust Center setting. >Macro Settings and Enabled All Macros
Совет, данный Подписание собственных макросов с помощью SelfCert.exe, сработал нормально. Я не буду дублировать рецензию, в которой есть отличные наглядные пособия. Вот что я узнал своими словами. Возможно, это поможет вам не продираться через всю статью. (Это не значит, что это трудно читать.)
Вот шаги:
- Создать самоподписанный сертификат
- Подпишите макрос сертификатом
- Проверьте настройки безопасности Outlook
- Запустить в первый раз
Вот более подробная информация.
Для цифровой подписи макросов необходимо иметь сертификат. Для большинства из нас это означает создание самозаверяющего сертификата, возможно, поэтому вы искали ответ на эту проблему. В Office есть утилита для этого. У меня 64-разрядная версия Office, поэтому я запустил C:Program FilesMicrosoft OfficerootOffice16SelfCert.exe (другие версии см. в статье, на которую я дал ссылку).
В редакторе VBA (ALT+F11), где вы создали макрос, выберите:
Tools-> Digital Signature…
Вы должны увидеть, что текущий проект VBA еще не подписан. Это проблема. В отличие от 2013 года, когда вы нажимаете кнопку «Выбрать…», вы получаете экран для выбора сертификата, который вы только что создали. (Установка была автоматической.)
Далее перейдите:
File-> Options-> Trust Center-> Trust Center Settings…-> Macro Settings
Убедитесь, что выбран этот параметр: уведомления для макросов с цифровой подписью, все остальные макросы отключены.
Перезапустите Outlook. При выходе вам будет предложено сохранить изменения в проекте VBA. Выберите «Да».
При первом запуске только что подписанного макроса вы получите уведомление. Выберите, что вы всегда будете доверять макросам или документам от этого издателя, и вам больше не будет предложено.
person
tbc0
schedule
03.10.2019
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:
-
Developer -> Macro Security -> (*) Enable all Macros (not only digitally signed)
-
Define a certificate using
C:Program Files (x86)Microsoft OfficeOffice15selfcert.exe
Nothing worked. Any idea?
asked Jun 3, 2015 at 12:18
Having come across this just now, this is how I ultimately solved it (none of the other suggestions worked for me):
- Create a self cert – I called mine “Self Cert” (generated from here in Office 2013 — C:Program Files (x86)Microsoft OfficeOffice15SELFCERT.EXE)
- Run certmgr.crt from the start menu and copy “Self Cert” from “PersonalCertificates” to the “Trusted Root Certification AuthoritiesCertificates” folder
- Open Outlook.exe as Administrator
- Open VBA (i.e. Developer -> Visual Basic)
- Open your module containing the VBA code
- Select Tools -> Digital Signature -> Choose…
- 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
- Click to save the macro in VBA – actually click the save button in VB (bizarrely it breaks if you don’t expressly save here)
- Close VBA
- Close Outlook, and choose Yes to save the VBA project
- Restart Outlook.exe again as Administrator
- 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
- 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
answered Jan 23, 2018 at 22:28
adamadam
4715 silver badges7 bronze badges
5
Ok, I found the reason for my problem:
(1) The Certificate nameofmycert by selfcert.exe was assigned to my VBA project.
(2) However I didn’t assign it to a trusted authority, like seen in: https://technet.microsoft.com/en-us/library/cc754841.aspx#BKMK_addlocal
(3) Outlook was set to allow all macros (not only digitally signed). Anyhow it found that my VBA project was certified, but was not sure if the cerification is correct, because of (2). Therefore it deactivated all macros.
(4) In VBA/Tools / Dignital Signature it appeared:
Certificate name: [no certificate]
Sign as: nameofmycert
The remove-botton was deactivated.
Solution:
(1) VBA/Tools / Digital Signature
(2) Click on Choose .. and select a cerificate. Then the remove-botton is activated.
(3) Click on Remove Certificate
(4) Save VBA project
(5) Restart Outlook
answered Jun 9, 2015 at 14:58
BerndGitBerndGit
1,4903 gold badges16 silver badges47 bronze badges
2
You need to change the Trust Center settings (run all macros, not only digitally signed) or purchase a valid certificate from a trusted authority.
answered Jun 3, 2015 at 12:44
![]()
Eugene AstafievEugene Astafiev
41.6k3 gold badges21 silver badges39 bronze badges
6
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:
-
Developer -> Macro Security -> (*) Enable all Macros (not only digitally signed)
-
Define a certificate using
C:Program Files (x86)Microsoft OfficeOffice15selfcert.exe
Nothing worked. Any idea?
asked Jun 3, 2015 at 12:18
Having come across this just now, this is how I ultimately solved it (none of the other suggestions worked for me):
- Create a self cert – I called mine “Self Cert” (generated from here in Office 2013 — C:Program Files (x86)Microsoft OfficeOffice15SELFCERT.EXE)
- Run certmgr.crt from the start menu and copy “Self Cert” from “PersonalCertificates” to the “Trusted Root Certification AuthoritiesCertificates” folder
- Open Outlook.exe as Administrator
- Open VBA (i.e. Developer -> Visual Basic)
- Open your module containing the VBA code
- Select Tools -> Digital Signature -> Choose…
- 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
- Click to save the macro in VBA – actually click the save button in VB (bizarrely it breaks if you don’t expressly save here)
- Close VBA
- Close Outlook, and choose Yes to save the VBA project
- Restart Outlook.exe again as Administrator
- 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
- 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
answered Jan 23, 2018 at 22:28
adamadam
4715 silver badges7 bronze badges
5
Ok, I found the reason for my problem:
(1) The Certificate nameofmycert by selfcert.exe was assigned to my VBA project.
(2) However I didn’t assign it to a trusted authority, like seen in: https://technet.microsoft.com/en-us/library/cc754841.aspx#BKMK_addlocal
(3) Outlook was set to allow all macros (not only digitally signed). Anyhow it found that my VBA project was certified, but was not sure if the cerification is correct, because of (2). Therefore it deactivated all macros.
(4) In VBA/Tools / Dignital Signature it appeared:
Certificate name: [no certificate]
Sign as: nameofmycert
The remove-botton was deactivated.
Solution:
(1) VBA/Tools / Digital Signature
(2) Click on Choose .. and select a cerificate. Then the remove-botton is activated.
(3) Click on Remove Certificate
(4) Save VBA project
(5) Restart Outlook
answered Jun 9, 2015 at 14:58
BerndGitBerndGit
1,4903 gold badges16 silver badges47 bronze badges
2
You need to change the Trust Center settings (run all macros, not only digitally signed) or purchase a valid certificate from a trusted authority.
answered Jun 3, 2015 at 12:44
![]()
Eugene AstafievEugene Astafiev
41.6k3 gold badges21 silver badges39 bronze badges
6