I was developing a workbook that utilizes Listboxes and their Click and Change events to then do lots of things. The workbook kept crashing, I debugged all my code, and long story short, I've isolated it down to whenever I would use my mousewheel and an ActiveX Listbox control on the sheet has focus. I first thought it was when my cursor was over the Listbox, and I used the mousewheel, but I can be anywhere on the sheet, and if a Listbox still has focus, the Wheel will Crash Excel.
I've been able to consistently replicate the bug by simply adding a Listbox anywhere in any workbook, and then trying to use my mousewheel after clicking in the Listbox, giving it Focus.. My Excel 2007, with SP1, crashes everytime! If I have a cell selected, thus no Listbox has Focus, I can use the mousewheel to scroll the entire sheet, no problems. But not the listbox contents. It crashes when the file is any of these formats, .xls, .xlsx,.xlsm.
I have found only mentions of solutions for this type of thing with regards to Access.
Does anyone have any ideas? Does this sort of thing happen on your machines, or is it just me?
I haven't figured out a way to disable the mousewheel during a listbox GotFocus, Entry or Exit event or something like that. I need to distribute this workbook I've created to other users, and it must use the listboxes. I'd hate to have to tell them to try to remember not to use their mousewheel....
Bookmarks