Add command button to document text

Updated: 23 October 2023

Add a traditional Command Button to the body text of a Word Document and run VBA code from that button:

  1. Go to Developer tab.
  2. Go to Controls area on Ribbon.
  3. From the drop down ‘Legacy Tools’ select ActiveX Controls and Command Button.
  4. Right click on the button and select Properties.
  5. Give the button an appropriate name.
  6. Give the button an appropriate caption.
  7. Right click on the button and select View Code – this is the entry point to your VBA.

Leave a comment