Summarize this article:

Microsoft Word and Excel are the only two Office 365 programs in which you can create macros by recording steps. Click the Blank option in the upper-left side of the window to create a new, blank document, or select a document from your computer. You can also double-click a document to open it in its respective program (e.g., double-clicking a Word document will open it in Word). As long as you enabled it in the last part, this tab should be at the top of the window. It's in the top-left side of the window in the Developer toolbar. This process will vary slightly depending on your selected program:   Word — Enter a name for the macro, select All documents as the "Store macro in" value, and click OK.  Excel — Enter a name for the macro, add a keyboard shortcut if you like, select This Workbook as the "Store macro in" value, and click OK. Once you click OK, any steps you take (e.g., clicks, typed text, etc.) will be added to your macro. It's in the Developer toolbar. This will save your macro and add it to your document's macro list. You can implement the macro by clicking Macros, selecting your macro's name, and clicking Run.
Make sure you have Word or Excel open. Open a document. Click Developer. Click Record Macro. Enter your macro's information. Record your macro. Click Stop Recording.