Hi,
I have created a certificate, placed it in the Trusted Root Certification Authorities folder, and signed my macro project with it. Since the code will be distributed within my company, security by means of a digital certificate has been asked for.
I tested this on a virtual machine on my laptop. The macro security settings in Word are set to "Disable all macros except digitally signed macros". But when I load the template with the macros, the notification bar appears, stating that my macros have been disabled. This is not the case when I put the template in a trusted location.
I messed with the project's code, and a message box popped up that forced me to choose between not saving the template, or removing the digital signature. Yes! I chose the latter. After restarting Word, however, the macro appears to run smoothly with no warning whatsoever - this is of course due to the trusted location. I have an AutoExec macro in the project that displays a "Welcome" userform, and the form shows up. It would be nice if in this case "Disable all macros except digitally signed macros" somehow had priority, but no.
And.
Users may activate templates (.dotx) by means of buttons in a custom ribbon; doing so once again displays the notification bar stating that certain active content has been disabled. Huh? None of the templates contain active content. Furthermore, when I look under Home | Info, I find that "certain active content" in fact has been disabled in my project template. Still, the AutoExec macro runs.
Two questions (of which A is by far the most important):
A: What do I gain by having my code signed?
B: When I wanted to sign my code again, my certificate was not shown any longer. Why is that? Removing and reinstalling the certificate did not help.
Thank you,
Cooz