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.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
A common part of working with text strings in a worksheet is normalizing those strings so that they follow whatever rules ...
Discover MoreRandom values are often needed when working with certain types of data. When you need to generate a random value in a ...
Discover MoreNeed to select a cell using a macro? Need that selection to be relative to the cell you currently have selected? Here are ...
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