VBA – Run a Macro Line by Line

Here is how to run a macro one line at a time. This is useful sometimes when debugging, or resuming line by line from a breakpoint.

F8 is the key!

In the Visual Basic Editor, place your cursor inside of the macro and hit F8. This will run the first line of your code. Hit F8 to run each additional line, or F5 to resume without stopping.