Mouse wheel jumps to Visual Basic window?

OxfordCurmudgeon

New Member
Joined
Oct 24, 2023
Messages
14
Office Version
  1. 2010
  2. 2003 or older
Platform
  1. Windows
When developing code, I jump back and forth between the VBA and normal Excel windows. Under a set of circumstances that I have yet to narrow down, when I'm looking at the Excel workbook, using the scroll wheel jumps me back to the Visual Basic window.

If I close the workbook and re-open it, the mouse wheel works as expected: I can scroll in the Excel or VBA windows.

In the VBA window, pressing F8 highlights the selected SUB line in yellow. The mouse wheel continues to work as expected. Pressing F8 again executes the first line of code; the mouse wheel works as expected (in both VBA and Excel windows). The next line is an ON ERROR statement. Single-stepping through that doesn't affect the mouse wheel operation. And so it goes. I can go through a normal debugging process without any problems -- and then the problem pops up. I haven't isolated a pattern.

Any insights?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,215,073
Messages
6,122,975
Members
449,095
Latest member
Mr Hughes

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