Please Note: This article is written for users of the following Microsoft Excel versions: 2007 and 2010. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Digital Signatures for Macros.
When you create macros and share them with others, the availability of those macros depends on the security settings on the user's machine. If the security level is set high enough, the user may not even be able to use the macros at all.
One way to help users utilize your macros is to digitally sign them. A digital signature allows a user to know that a macro comes from a trusted source and that it hasn't been modified since it was originally saved by that trusted source. In other words, it is a way for users to be sure that a macro hasn't been tampered with. (Sort of like the product safety seals on some consumer foods and pharmaceuticals.)
In order to digitally sign a macro, you need to first obtain a digital certificate. A certificate is a "seal of approval" from a trusted third party that you are who you say you are. You can get digital certificates from a variety of commercial certificate authorities, each of which has different requirements of how you go about certifying your identity.
You can also create your own digital certificate for testing purposes using the program SelfCert.exe, which is provided with Microsoft Office. This route is great for testing, but it won't help you when you distribute your macros to others; you'll still need the certificate from the third-party authority. You can find more information about the SelfCert.exe program by using Excel's online help and searching for "selfcert."
Once you have a digital certificate, you can digitally sign your macro project in this manner:
You can find more information about digital signatures in Excel's Help system. You can also find some great information about both certificates and signatures at this page in the Knowledge Base:
http://support.microsoft.com/kb/820738
Note that the page indicates that it is only for Excel 2003 and 2007. The information is also applicable to Excel 2010.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10486) applies to Microsoft Excel 2007 and 2010. You can find a version of this tip for the older menu interface of Excel here: Digital Signatures for Macros.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
There are multiple ways that Excel can create a workbook, and the formatting in each creation method can be different. In ...
Discover MoreWhen running a macro, have you ever seen Excel appear to stop responding? This can be frustrating, but there are a couple ...
Discover MoreYour macros can easily open and manipulate other Excel workbooks. If a workbook you are trying to use is already in use ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2016-11-23 10:37:29
ThinkAdvantage
How can I check if the Signature is in place?
2014-08-07 08:26:01
RKeev
Does this "PROTECT" the project too? Also, if you use a card, like a common access card (CAC), if you change cards or loose your card you won't have access to the project either correct?
I've used a CAC with digitally signed emails, but when I had my CAC replaced, I could no longer access any of those emails. So as the knight said... Choose wisely.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments