Run time error can't run the specified macro
  • 17 Jan 2023
  • Contributors
  • Dark
    Light
  • PDF

Run time error can't run the specified macro

  • Dark
    Light
  • PDF

Article summary

When running macros in Microsoft Word, the following error occurs:

Answer:

This issue was caused by the header code of the document having been copied and pasted from somewhere else and as a result the fields did not appear as merge fields when toggling ALT F9.

The solution is to replace the fields with merge fields when copying and pasting. See the following with details on adding fields as merge fields:

How to add Header Coding as a Merge Field in Microsoft Word Templates

Was this article helpful?