Three Methods:Record a Macro in Microsoft Word 2007Assigning Macros in Word to a ButtonAssigning Macros in Word to a Keyboard ShortcutCommunity Q&A. You can create macros in any Microsoft Office program to automatically perform a lengthy series of commands that you use often.