+ Reply to Thread
Results 1 to 6 of 6

Double click from List Box and populate data into another cell

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    Victoria
    MS-Off Ver
    Excel 2007
    Posts
    3

    Double click from List Box and populate data into another cell

    Hi everyone.

    First time user.

    I am wanting to write code so, if I double click any data contained in the List box in coloum A, it will populate that text data into cell E3. If cell E3 already has data, then paste it to cell E4 and so on.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Double click from List Box and populate data into another cell

    Try this for now and you will get a better code from experts.

    Regards,
    tt3
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    Victoria
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Double click from List Box and populate data into another cell

    Hi tt3.
    Great work. almost there. Is there a way to double click the chosen code from the list box? - I wanted the full menu of codes visable and not having to use drop down box.
    Thanks

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Double click from List Box and populate data into another cell

    Hello Shaneg1,

    The ListBox you are using is a Forms type which does not support the Double-Click event. I have added an ActiveX ListBox in it's place. The following code is run whenever the the user Double-Clicks a selection in the ListBox.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Registered User
    Join Date
    05-23-2013
    Location
    Victoria
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Double click from List Box and populate data into another cell

    Thanks Leith. It works as you said. Q - how do I get the data into the list index?

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Double click from List Box and populate data into another cell

    Hello Shaneg1,

    The property ListFillRangesets the range of data to be displayed in the list box.
    Please Login or Register  to view this content.

+ 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