Microsoft Word – How to Embed a Macro in a Document

microsoft wordmicrosoft-word-2013

Is there a way to store custom macros inside a word document? I noticed that when I distribute a document with a macro I made that it arrives "macro-less" and therefore doesn't perform as expected.

I'd like to embed the needed macro inside the document to make it portable.

Perhaps this just isn't possible, but I'm hoping it is.

We use mostly office 2013

Best Answer

For macros recorded via the Record Macro button.

  • And not assigned to either a button or keyboard shortcut:

  • For macros recorded via Record Macro button and Assign macro to Button selected.

  • For macros recorded via Record Macro button and Assign macro to Keyboard selected:

For macros created by the Macros button make sure in the Macros in dropdown list to select the document itself.

Related Question