+ Reply to Thread
Results 1 to 7 of 7

ListBox Double Click () selection from another worksheet and populate data in text box

  1. #1
    Registered User
    Join Date
    08-31-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    18

    ListBox Double Click () selection from another worksheet and populate data in text box

    Hi,

    I have been trying to search for the correct codes in my List Box double Click () for the userform that I have interfaced but to no avail.

    Would appreciate if some one can help me with the following:

    1) List Box to select item code from Database worksheet
    2) Msgbox to indicate the item code number when selected
    3) Textboxes and option button to populate from list box selection


    Please Login or Register  to view this content.
    Also, when I double click the output doesn't select the data instead displaying the labels
    Attached Images Attached Images
    Last edited by alansidman; 09-01-2014 at 11:32 PM. Reason: code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,851

    Re: ListBox Double Click () selection from another worksheet and populate data in text box

    Code Tags Added
    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 at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-31-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    18

    Re: ListBox Double Click () selection from another worksheet and populate data in text box

    I appreciate it Alan, will comply with the rules in future threads...

    Thanks a lot!!

    Imzhakmaya

  4. #4
    Registered User
    Join Date
    08-31-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    18

    Question Re: ListBox Double Click () selection from another worksheet and populate data in text box

    Hi,

    I've attached my workbook for easy understanding... the interface is not ready yet as I've just coded for Add Item, Modify Item only....


    Need help on this, thanks a lot!!!


    Imzhakmaya
    Attached Files Attached Files

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: ListBox Double Click () selection from another worksheet and populate data in text box

    here's a start

    Please Login or Register  to view this content.
    Last edited by mike7952; 09-02-2014 at 12:33 AM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  6. #6
    Registered User
    Join Date
    08-31-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    18

    Re: ListBox Double Click () selection from another worksheet and populate data in text box

    Hi Mike,

    Thanks a million...


    Imzhakmaya

  7. #7
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: ListBox Double Click () selection from another worksheet and populate data in text box

    Another method is to use the ListIndex offset to the row number. They appear to be offset by two.

    iRow = Me.ListBox1.ListIndex + 2
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] Double click from List Box and populate data into another cell
    By shaneg1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-27-2013, 04:16 AM
  2. [SOLVED] Userform opened by double click containing data from worksheet
    By amurray2307 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-17-2013, 11:51 AM
  3. double click to copy data to another worksheet
    By BBQ in forum Excel General
    Replies: 2
    Last Post: 12-01-2008, 09:09 PM
  4. populate listbox based on selection in previous listbox
    By sarahng86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2007, 10:55 PM
  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