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.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!
If your workbook contains links, you are normally given the opportunity to update those links when you open the workbook. ...
Discover MoreYour company may be regulated by requirements that it document any changes to the macros in an Excel worksheet. Your ...
Discover MoreIf you need to insert the current time, with seconds, then you'll need the macro discussed in this tip. It's easy to 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 © 2024 Sharon Parq Associates, Inc.
Comments