VBA debugging mode

StringKing

New Member
Joined
Jul 22, 2009
Messages
21
Hi,

Can anyone maybe help with a solution to the following:

I have compiled VBA code to complete certain tasks on a workbook. When stepping through the code (F8) it steps thorough correctly until i get to a "workbook.open" line. The debugger then runs automatically (similar to pressing F5), instead of just stepping through that line as one step (F8). It only stops when the code runs into an error or completes. :confused: I'm not pressing F5 at all during the entire process.

Is there a setting or something i can do to avoid the debugger from "running away" with the entire sub?

Thanks for your help! :)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,224,883
Messages
6,181,551
Members
453,052
Latest member
ezzat

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top