+ Reply to Thread
Results 1 to 6 of 6

Double Click on ListBox row

  1. #1
    Registered User
    Join Date
    10-09-2017
    Location
    Stavanger, Norway
    MS-Off Ver
    O365
    Posts
    78

    Double Click on ListBox row

    I have a Listbox with 10 rows 1 column, Values from Range(C35:C44)

    Please Login or Register  to view this content.
    When I double click on one of the rows I want to return the value "1" to the equivalent row in the Range (B35:B44), and all other value in the range to be Zero.
    In other words when I double click row 1 in the listbox I want B35 to be "1" and B36:B44 to be zero, and so on for all double clicked rows in the listbox.

    I'd prefer not to have to use a "Save" button.
    This should be easy code, I just can't workout the best way.. I've got stuck.. any suggestions.
    I'm not a programmer so the entire code would be helpful.

    Cheers

  2. #2
    Registered User
    Join Date
    10-16-2023
    Location
    Poland
    MS-Off Ver
    Excel 2019 32bit WIN10
    Posts
    99

    Re: Double Click on ListBox row

    For "ltb_InjProfile" assign a procedure for the double click event:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-09-2017
    Location
    Stavanger, Norway
    MS-Off Ver
    O365
    Posts
    78

    Re: Double Click on ListBox row

    Tajan Many thanks
    ..and what would the code look like for a single click .. I would like to use the ListStyle option "1-fmListStyleOption" rather than the plain style

    Simon

  4. #4
    Registered User
    Join Date
    10-09-2017
    Location
    Stavanger, Norway
    MS-Off Ver
    O365
    Posts
    78

    Re: Double Click on ListBox row

    Tajan.. not to worry I worked it out

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-16-2023
    Location
    Poland
    MS-Off Ver
    Excel 2019 32bit WIN10
    Posts
    99

    Re: Double Click on ListBox row

    For one selection the code is the same.
    Last edited by Tajan; 10-30-2023 at 06:55 PM.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,993

    Re: Double Click on ListBox row

    Quote Originally Posted by SimonCampbell View Post
    Tajan.. not to worry I worked it out

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking addreputationiconsmall.jpg below their name.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. [SOLVED] ListBox Double Click not Adding to another TextBox
    By Chandria in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-24-2017, 04:11 AM
  2. Excel Double Click/Enter Listbox
    By RJ1969 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-20-2017, 11:38 PM
  3. [SOLVED] Double-click a listbox inside a group
    By rodgersmg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2015, 08:23 AM
  4. [SOLVED] Move rows from one listbox to another by double click
    By Littlefarmer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2015, 10:39 AM
  5. [SOLVED] Double Click Listbox question
    By frostii in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2015, 09:15 PM
  6. Double click Listbox to edit item
    By johan12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2012, 04:12 AM
  7. [SOLVED] Need selected item from listbox after double click
    By peterfarge@hotmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2006, 11:20 AM

Tags for this Thread

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