+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : MouseWheel on Listbox Crashes my Excel 2007

  1. #1
    Forum Contributor
    Join Date
    07-13-2007
    Posts
    151

    MouseWheel on Listbox Crashes my Excel 2007

    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....

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486
    Very interesting, I am still on XL2003 and the same thing happens

  3. #3
    Forum Contributor
    Join Date
    07-13-2007
    Posts
    151

    Dave:

    Thanks for the reply. I was kinda hoping I could safely distribute my workbook to 2003 users, but I guess they may have the same issue.

    I noticed that my thread was moved to this Excel 2007 forum. I don't know if you did that or not, but since you're a Moderator and experience the same problem in XL2003, do you think we should maybe move it back to the Misc. forum where I originally posted it for a little more exposure? Maybe someone out there has some experience with this.


    BTW, I use a Microsoft Wireless Optical Mouse 2.0. I don't know if that would have any bearing or not. I would think the mousewheel event is independent of the device that generates it.

  4. #4
    Forum Contributor
    Join Date
    07-13-2007
    Posts
    151

    Work Around

    In my workbook that utilizes listboxes, I've inserted a line in the Listboxes' click event routines that selects a cell after it does it's other stuff. This deactivates the listbox, thus preventing the mousewheel crash.

    It proves to be useful, as I select the row of data that corrseponds to the values in the listbox using its listindex. the list that populates the listbox is in pane below a freeze line so a scroll wheel then spins through those rows, leaving my listboxes where they are.

    Given the exercise I'm facilitating, it works out pretty well. Still annoying though that Escel will consistently crash otherwise. That needs to be fixed!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1