Word, Macros and Digital Signatures

Back to Main Index

Stopping macro prompts when you open or create a new document

When you create macros in your templates, you will be prompted every time you open the template or a new document based on the template, asking whether to enable macros.

To stop the prompts, you will need to create a digital signature that lets you tell Word to trust your own macros.

  1. Click on the Start button.
  2. Select Run.
  3. Click on the Browse button.
  4. Navigate to location of your Office installation.
    For eg: C:\Program Files\Microsoft Office\Office11 (Office10 if you've got Office XP; or to the location that you have installed Office if in a different drive or folder)
  5. Select SELFCERT.EXE.
  6. Click Open.
    The Run dialog box is displayed:
  7. Click OK.
    The Create Digital Certificate dialog box is displayed:
  8. Enter your name.
  9. Click OK.
    The following message is displayed.
  10. Click OK.

Inside Word

  1. Open a document in which you use macros.

  2. From the Tools menu select Macros4Visual Basic Editor.

  3. In the Project pane at the upper left, highlight the name of the document.

  4. From the Tools menu select Digital Signature.

  5. Click on Choose.

  6. Select the certificate you just created.

  7. Click OK and click OK again.

  8. Close Visual Basic Editor.

  9. Close the document, saving the changes.

  10. Reopen the document.

  11. If a Security Warning dialog appears, select Always Trust Macros From This Source.

  12. Click on Enable Macros.

Repeat this procedure for any other document or template that has macros embedded in it.

Your self-created certificate will be "trusted" only on your own machine; the Always Trust Macros From This Source option will be greyed out if you send a file that includes the certificate to any other system.

Back to Top                                            Back to Main Index