+ Reply to Thread
Results 1 to 4 of 4

How is it possible to fill in data from a textbox into a selected row in a listbox

  1. #1
    Registered User
    Join Date
    06-02-2014
    Posts
    3

    Question How is it possible to fill in data from a textbox into a selected row in a listbox

    Hi,

    I have a excel vba userform problem.

    I have a listbox that is automatically filled with data in two columns through a lookup function from a worksheet. That works fine. But now I want to fill the third column with data through a text box, but only in the rows I have selected in the listbox.

    My code so far is:


    Please Login or Register  to view this content.

    The number I want to insert into the listbox appears, but not in column 3 in the selected row(s).

    Thanks,
    Erlend
    Last edited by vbastarter14; 06-02-2014 at 11:10 AM.

  2. #2
    Registered User
    Join Date
    06-02-2014
    Posts
    3

    Re: How is it possible to fill in data from a textbox into a selected row in a listbox

    Thanks for the information :-)

  3. #3
    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: How is it possible to fill in data from a textbox into a selected row in a listbox

    Hello vbastarter14,

    Is this ListBox on a Worksheet or VBA UserForm?

    You say it is filled automatically. Does this mean you have assigned a Range to the RowSource property?
    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!)

  4. #4
    Registered User
    Join Date
    06-02-2014
    Posts
    3

    Re: How is it possible to fill in data from a textbox into a selected row in a listbox

    Hi,

    Thank you for your response.

    The listbox is on a vba userform.
    And the code for filling the userform is connected to a combobox which has the lookup function. The code looks like this:

    Please Login or Register  to view this content.

    Thanks,
    Erlend

+ 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] Display Selected Item in Listbox in Textbox
    By puuts in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-14-2014, 04:19 PM
  2. UserForm: Enable Textbox When "Other" Selected in MultiSelect Listbox (Excel 2010)
    By excelforumkeys in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-02-2014, 06:40 PM
  3. Replies: 3
    Last Post: 08-10-2011, 02:02 PM
  4. fill a listbox from textbox of other tab of userform in excel vba
    By kmlprtsngh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-22-2010, 03:36 AM
  5. Textbox values won't place into selected Listbox rows
    By Julesdude in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-16-2010, 07:34 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