| | Product Information Help and How-to Training Templates Related Products and Technologies Support and Feedback Technical Resources Additional Resources | Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.
Digitally sign a file or macro project
You digitally sign (digital signature: An electronic, encryption-based, secure stamp of authentication on a macro or document. This signature confirms that the macro or document originated from the signer and has not been altered.) a file or a macro project (macro project: A collection of components, including forms, code, and class modules, that make up a macro. Macro projects created in Microsoft Visual Basic for Applications can be included in add-ins and in most Microsoft Office programs.) by using a digital certificate (digital certificate: Attachment for a file, macro project, or e-mail message that vouches for authenticity, provides secure encryption, or supplies a verifiable signature. To digitally sign macro projects, you must install a digital certification.).
- If you don't already have a digital certificate, you must obtain one.
How?
You can obtain a digital certificate from a commercial certification authority, such as VeriSign, Inc., or from your internal security administrator or Information Technology (IT) professional. Or, you can create a digital signature yourself using the Selfcert.exe tool.
To learn more about certification authorities that offer services for Microsoft products, see the list of
Microsoft Root Certificate Program Members.
Notes
- The hyperlink (hyperlink: Colored and underlined text or a graphic that you click to go to a file, a location in a file, a Web page on the World Wide Web, or a Web page on an intranet. Hyperlinks can also go to newsgroups and to Gopher, Telnet, and FTP sites.) in this topic goes to the Web. You can switch back to Help at any time.
-
Because a digital certificate you create yourself isn't issued by a formal certification authority, macro projects signed (macro project: A collection of components, including forms, code, and class modules, that make up a macro. Macro projects created in Microsoft Visual Basic for Applications can be included in add-ins and in most Microsoft Office programs.) by using such a certificate are referred to as self-signed projects. Depending on how Microsoft Office digital-signature features are being used in your organization, you might be prevented from using such a certificate, and other users might not be able to run self-signed macros for security reasons.
- Do one of the following:
Sign a file
- On the Tools menu, click Options, and click the Security tab.
- Click Digital signatures.
- Click Add.
- Select the certificate you want to add, and then click OK.
Sign a macro project
- Open the file that contains the macro project you want to sign.
- On the Tools menu, point to Macro, and then click Visual Basic Editor.
- In the Project Explorer, select the project you want to sign.
- On the Tools menu, click Digital Signature.
- Do one of the following:
- If you haven't previously selected a digital certificate or want to use another one, click Choose, select the certificate, and then click OK twice.
- To use the current certificate, click OK.
|