This action will reset your project, proceed anyway?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,535
Office Version
  1. 365
Platform
  1. Windows
I am getting this message after I made a couple of edits to a macro and then tried to rerun it. Behind the message, all of the code in that module is selected. If I click Ok, it is all deleted. If I click Cancel, the code is still selected. If click anywhere, the selection goes away and I see that the macro declaration is highlighted in yellow indicating break mode. If I click Run and Reset, break mode is cleared, but if I rerun the macro, it all happens again.

Any clues to what I did this time to cause VBA to torture me this way?
 
The behaviour you described was exactly what would happen if the focus didn't go to the immediate window following the ^g part of the sendkeys code. I would never use sendkeys unless there is literally no option.
The websites where I found the Sendkeys code had some warnings that it was flakey. I there any other way to clear the Immediate window?

Thanks
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,215,339
Messages
6,124,381
Members
449,155
Latest member
ravioli44

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