+ Reply to Thread
Results 1 to 7 of 7

Sorting Listbox and scrolling by mouse

  1. #1
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Sorting Listbox and scrolling by mouse

    Dear All

    I have a multicolumn listbox populated with a data.

    So could anyone help me any of these two questions/requests:

    1. is there a way I can scroll my listbox items by using mouse?
    2. can I sort my listbox items at desired column?

    The file is attached

    Thnk youin advance
    Attached Files Attached Files
    GUURE

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sorting Listbox and scrolling by mouse

    Hello
    Have a look at this file (may be helpful for you in your case)
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Sorting Listbox and scrolling by mouse

    Dear Yasser

    Thank you for your reply.

    I can not access to this code as this error pops up.
    Attached Images Attached Images

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sorting Listbox and scrolling by mouse

    These declarations have to be changed to work on 64 Bit and I don't have 64 Bit now to try changing
    Waiting for others to try to edit so as to suit the 64 bit system

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Sorting Listbox and scrolling by mouse

    I could only sort the sheet depending on the column you select from the combobox.

    When you change the combobox, the listbox clears and the sheet is sorted, then the list box is repopulated.

    Please Login or Register  to view this content.
    Normally, one cannot Scroll in the listbox
    Last edited by davesexcel; 03-09-2017 at 01:11 PM.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Sorting Listbox and scrolling by mouse

    Here's one from Andy Pope to sort by double clicking column in ListBox.
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  7. #7
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Sorting Listbox and scrolling by mouse

    Thank you all Yasser, Daves and Bakerman2

    I have got a greathint enought to what I am looking for.
    Thanks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Productivity mouse not scrolling left and right
    By davidx in forum Excel General
    Replies: 0
    Last Post: 01-06-2015, 06:01 AM
  2. Mouse not scrolling
    By Dcard in forum Excel General
    Replies: 1
    Last Post: 09-25-2014, 07:29 AM
  3. Mouse wheel is not scrolling down in the list box
    By punna111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2013, 08:53 PM
  4. Editing listbox items in Dblclick event freezes Excel unless mouse moves over listbox
    By muneebmansoor in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-28-2013, 02:21 PM
  5. Macro is not considering mouse scrolling
    By prince.abdeen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2012, 01:58 AM
  6. Scrolling problems with the mouse
    By david.palmer in forum Excel General
    Replies: 1
    Last Post: 04-21-2006, 04:35 PM
  7. [SOLVED] Scrolling with Mouse
    By PC_Joe in forum Excel General
    Replies: 2
    Last Post: 05-19-2005, 04:06 PM

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