+ Reply to Thread
Results 1 to 4 of 4

Double Click Listbox question

  1. #1
    Registered User
    Join Date
    02-13-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    34

    Double Click Listbox question

    Hi everybody,

    Was wondering if anybody could help with the following code. Firstly, yes, I am very new to vb coding!

    I have a listbox with an OK and Cancel button. I wanted the user to be able to double click their choice, as well as single click and then OK.

    I'm not sure where to put the code. Any help would be appreciated.

    Here is the code:




    Please Login or Register  to view this content.
    Thx in advance!
    Last edited by frostii; 02-17-2015 at 07:37 PM. Reason: Updating as per forum rules

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Double Click Listbox question

    Hi frostii,

    You were very very close.

    You can do it either of two ways. Both are acceptable. It depends on which you prefer.

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Lewis


    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Registered User
    Join Date
    02-13-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    34

    Re: Double Click Listbox question

    Quote Originally Posted by LJMetzger View Post
    Hi frostii,

    You were very very close.

    You can do it either of two ways. Both are acceptable. It depends on which you prefer.

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Lewis


    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)


    Thank you so much! I knew I was close.

    Also, I fixed the original post as per forum rules. Sorry, it was my first post!

    Thx again.

    How do I change this post to 'SOLVED'?
    Last edited by frostii; 02-17-2015 at 07:48 PM.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Double Click Listbox question

    I'm glad it worked out. Thanks for adding the CODE TAGS to the original post and welcome to ExcelForum.

    Select Thread Tools from the menu link above to mark the thread as SOLVED.

    Lewis

+ 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 () selection from another worksheet and populate data in text box
    By imzhakmaya in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2014, 03:49 AM
  2. Double click Listbox to edit item
    By johan12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2012, 04:12 AM
  3. Replies: 3
    Last Post: 08-10-2011, 02:02 PM
  4. double click option in listbox outputs to cell in excel 97 !
    By spyrule in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2006, 12:05 AM
  5. [SOLVED] Need selected item from listbox after double click
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2006, 11:20 AM

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