Tools - Macro - Stop Recording

Ribbon bar. Select the Tools tab. In the Tools group, click Macro and from the menu, select Stop Recording to stop the recording of a master macro or a keyboard macro.

Classic menus. From the Tools - Macro submenu, select Stop Recording to stop the recording of a master macro or a keyboard macro.

The New Macro dialog box will be displayed, which is used to name the macro as well as assign other options if desired.