| Signing Your Own Macros with SelfCert.exe |
|
| Sunday, 04 March 2007 16:41 |
|
Locate and Run SELFCERT.EXEThe default location for SelfCert.exe is C:\Program Files\Microsoft Office\Office <version number>. To run SelfCert for Office 2007 you would go to Start -> Run and then type: C:\Program Files\Microsoft Office\Office12\SELFCERT.EXE
Your certifcate's name could be anything including your company name or your username. I'll use Mars. Signing Your CodeBack in the VBA editor (ALT+F11) where you created the macro choose Tools > Digital Signature.
Click Choose... and choose your certificate name.
Select the signature you create and then click OK.
Running the Signed Macro for the First TimeThe first time you run the macro, you will be presented with something like this. You can click Show Signature Details first to confirm the signature is the one you just created and then click Trust all documents from this publisher.
|