Debug - Toggle Breakpoint

Ribbon bar. Select the Debug tab. In the Breakpoint group, click Toggle to set or unset the current line (where the cursor is located) as a breakpoint.

Classic menus. From the Debug menu, select Toggle Breakpoint to set or unset the current line (where the cursor is located) as a breakpoint.

When the macro is being run, it will pause whenever it comes across a breakpoint; the code within the breakpoint will not run. This is useful for locating program bugs by narrowing down trouble spots to specific lines of code.

Note: this command can also be executed by pressing F9. See also Debug - Step Into, Debug - Step Over, and Debug - Step Out.