Article ID: 820738 - Last Review: February 16, 2007 - Revision: 3.3 Description of digital signatures and code signing in workbooks in Excel
For a Microsoft Excel 2002 version of this article, see 288985
(http://support.microsoft.com/kb/288985/
)
.
On This PageSUMMARYIn Microsoft Office Excel 2003 and in later versions of Excel, you can digitally sign a
workbook or code sign your macro project. This ensures that you were the last
person to make changes to the workbook or macro project. This article discusses the following topics about digital signatures and code signing: MORE INFORMATIONWhat is a digital certificate?Digital certificates and signatures help to assure you that the file that you are about to use comes from a reliable source. They help to assure you that the file has not been tampered with.A digital certificate is an ID that a file carries with it. To validate a signature, a certifying authority validates information about the creator of the file and then issues the digital certificate. The digital certificate contains information about the person to whom the certificate was issued, as well as information about the certifying authority that issued it. When a digital certificate is used to sign a file, this ID is stored with the file in a verifiable form so that it can be displayed to a user. What is a signature?Excel uses digital signatures on the workbook contents to help ensure that the workbook has not been modified and saved since it was signed. Digital signatures can also help you distinguish workbooks and macros created by a reliable source from undesirable and potentially damaging workbooks or macro code (viruses).A digital signature is a public certificate plus the value of the signed data as encrypted by a private key. The value is a number that a cryptographic algorithm generates for any data that you want to sign. This algorithm makes it nearly impossible to change the data without changing the resulting value. So, by encrypting the value instead of the data, a digital signature helps a user to verify the data was not changed. What happens when I use a digital signature?You can view and edit signed Excel workbooks, although you cannot modify and save a signed workbook without invalidating the signature. For example, you can sign a file and other users can view the file. As long as the file remains signed, others will know it came from you and has not been modified.Digital signing a workbook is different from code signing a Visual Basic for Applications (VBA) macro project. You can digitally sign the workbook for content and you can also code sign your VBA macro project in the same workbook. What Excel files can I digitally sign?You can digitally sign any Excel workbook or Excel template. However, Excel versions that are earlier than Microsoft Excel 2002 do not recognize the digital signature.If you digitally sign a shared workbook, Excel will not retain the digital signature because more than one person can make changes to the workbook. Additionally, you cannot code sign a macro project, because Excel will not allow you to create or make changes to macro projects in a workbook after it has been set up as shared workbook. How can I obtain a signature?To obtain a digital signature, you first have to have a digital certificate.You can obtain a digital certificate or a code signing ID from a commercial certification authority or from your internal security administrator or information technology (IT) professional. A certification authority can issue you a digital certificate or code signing ID for no charge. The certification authority does an in-depth identification check before it issues a digital certificate. For more information about how to obtain a digital signature or code signing ID, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/ms995347.aspx
(http://msdn2.microsoft.com/en-us/library/ms995347.aspx)
You can create your own digital certificate for personal
use or testing purposes with the SelfCert.exe tool that is provided in
Microsoft Office. However, this certificate is not authenticated by a
Certificate Authority (CA).How do I add a digital signature to a workbook?To add a digital signature to your workbook, follow these steps, as appropriate for the version of Excel that you are running.Microsoft Office Excel 2007
Notes
Excel 2003
Notes
How do I code sign a macro project?To code sign your Visual Basic for Applications macro project, follow these steps:
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
