Add a digital signature to 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 certificate.).

  1. If you don't already have a digital certificate, you must obtain one.


You can obtain a digital certificate from Office Marketplace - Digital Signing, or from your internal security administrator or Information Technology (IT) professional. Or, you can create your own digital certificate.

To learn more about certification authorities that offer services for Microsoft products, see the list of Microsoft root certificate program members.


  1. Do one of the following:

ShowSign a file

  1. On the Tools menu, click Options, and click the Security tab.
  2. Click Digital signatures.
  3. Click Add.
  4. Select the certificate you want to add, and then click OK.

ShowSign a macro project

  1. Open the file that contains the macro project you want to sign.
  2. On the Tools menu, point to Macro, and then click Visual Basic Editor.
  3. In the Project Explorer, select the project you want to sign.
  4. On the Tools menu, click Digital Signature.
  5. 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.


Cool things you can do with Office 2010

If you purchase, install, and activate a qualifying Microsoft Office 2007 product between March 5, 2010, and September 30, 2010, you could be eligible to download Office 2010 at no additional cost.

Applies to:
Excel 2003, Outlook 2003, PowerPoint 2003, Publisher 2003, Word 2003