Ihidan
Ihidan

Reputation: 568

VBA Debugging with breakpoints

I need to debug part of a VBA code. So I've set a breakpoint in the line I want to start debugging. But after pressing F8 a few times I want the code to run normally (without having to press F8).

How do I do it?

Upvotes: 0

Views: 240

Answers (3)

wellimustbedead
wellimustbedead

Reputation: 91

If you want the code to run normally you can press F5 and this will run until complete. However if you want the code to run as normal until a certain point in the code you can insert a breakpoint first by clicking in the margin left of the line you wish the code to break at before pressing F5. This is useful if you wish to skip large amounts of code or long loops etc, but still wish to examine a section of code.

Upvotes: 0

Stefan
Stefan

Reputation: 1553

alternatively to play you can use F5 instead.

Upvotes: 1

Ihidan
Ihidan

Reputation: 568

Pressing the play button solves the problem.

Upvotes: 0

Related Questions