How to Digitally Sign Your Word Macro Project

In this article, we will give you detailed instructions of how to digitally sign your Word macro project.

By and large, Word disables all macros and pops up notifications whenever we show the intention to run one. This means we have to personally confirm the operation every time we open a Word document containing a macro, which is not convenient. While on the other hand, if we enable all macros, we are put our files and computer at high risk.

Obviously, neither is perfect. Actually, to address this issue, we have a better way that is to digitally sign macros and grant to run them only.

Now follow the guide below to finish the setting.

Alter Macro Security Level

  1. First and foremost, open Word and click “Developer”. Remember to ensure the “Developer” tab is available.
  2. Second, click “Macro Security” in “Code” group.Click "Developer" ->Click "Macro Security"
  3. In the “Trust Center” dialog box, check “Disable all macros except digitally signed macros” box.
  4. Then click “OK”.Check Setting Box ->Click "OK"
  5. Next click “Visual Basic” in “Code” group under “Developer” tab.Click "Visual Basic"
  6. Now you shall have opened the VBA editor. Click the Project of this document and click “Insert” on toolbar.
  7. Then choose “Module” and you shall open the code editing area on the right side.Click Project of This Document ->Click "Insert" -> Choose "Module"
  8. Next, you can copy the following codes there as a test macro.
    Sub TestMacro()
      MsgBox ("Test!")
    End Sub
  1. Now go to save the document. You will receive a message box, such as below:Click "No"

Just click “No”.

  1. And you will back to “Save As” window. First choose a storage location.
  2. Then choose “Word Macro-Enable Document” as file type.
  3. Next, click “Save” button.Choose a Storage Location ->Choose "Word Macro-Enabled Document" as File Type
  4. Open the document with the test macro again. And click “Macros” under “Developer” tab again.
  5. Then choose the test macro and click “Run”.Choose Macro ->Click "Run"

And you will receive a warning message, suggesting the macro is disabled.A Warning Message

Install Digital Certificate for VBA Projects

  1. Firstly, click “Start” menu in Windows.
  2. Click “All Programs” next.Click "Start" ->Click "All Programs"
  3. Then find and click “Microsoft Office”.
  4. Next continue to find and choose “Microsoft Office Tools” file for the version you use.
  5. And click “Digital Certificate for VBA Projects”.Click "Microsoft Office" ->Click Microsoft Office Tool of Your Office Version ->Click "Digital Certificate for VBA Projects"
  6. Now you will see “Create Digital Certificate” dialog box. Enter your certificate name.
  7. Click “OK” to save the change.Enter Certificate Name ->Click "OK"Successfully Create a Certificate

Now if you can’t find “Digital Certificate for VBA Projects”, you can take the following leads to fix it:

  1. To begin with, insert Microsoft Office installation disc into your computer.
  2. Then click “Start” menu.
  3. And click “Control Panel”.Click "Start" ->Click "Control Panel"
  4. Next click “Programs” and “Programs and Features” in order.
  5. Then on the list box, find and click the right version of Microsoft Office.
  6. Next right click and choose “Change”.Choose "Change"
  7. In the installation guide, check “Add or Remove Features”.
  8. Then click “Continue” button.Check "Add or Remove Features" ->Click "Continue"
  9. Next, under “Installation Options”, click “Office Shared Features” first.
  10. Then click “Digital Certificate for VBA Projects”.
  11. On the list-menu, choose “Run from My Computer” and follow the guide to finish the progress.Click "Office Shared Features" ->Click "Digital Certificate for VBA Projects" ->Click "Run from My Computer"

Digitally Sign Word Macros

  1. First of all, open the document with macro inside and open VBA editor, too.
  2. Then click “Tools”.
  3. And choose “Digital Signature”.Click "Tools" ->Choose "Digital Signature"
  4. Now in “Digital Signature” dialog box, click “Choose” button.Click "Choose"
  5. Then in the new box, select a certificate.
  6. And click “OK”.Select a Certificate ->Click "OK"
  7. Remember to click “OK” in “Digital Signature”, too.
  8. Now you can save and close your document.
  9. Next time you open the document. You may see such a warning message: Macros have been disabled.Warning Message

Click on the message.

  1. Now in the backstage view, click “Enable Content” first.
  2. Then click “Advanced Options”.Click "Enable Content" ->Choose "Advanced Options"
  3. In “Microsoft Office Security Options” dialog box, check “Trust all documents from this publisher”.
  4. Then click “OK”.Check "Trust all documents from this publisher" ->Click "OK"

File Corruption Happens Anyway

The fact is that you back up all critical files, run antivirus programs routinely, and avoid bad habits while working with Word as possible as you can, yet you still suffer file loss. This can be a huge blow to your confidence in taking precaution measures. Nevertheless, you have to continue doing all the preventive steps, including getting a fully-fledged corrupt Word repair tool.

Author Introduction:

Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including damaged xlsx recovery tool and pdf repair software products. For more information visit www.datanumen.com

One response to “How to Digitally Sign Your Word Macro Project”

  1. Wow, fantastic blog layout! How long have you ever been running a
    blog for? you made running a blog look easy.
    The whole look of your web site is magnificent, as well as the content material!

    You can see similar: Seraphina.top and here Seraphina.top

Leave a Reply

Your email address will not be published. Required fields are marked *