Consulting

Results 1 to 7 of 7

Thread: Solved: Populate Specific Column Cell based on ListBox Selection

  1. #1
    VBAX Regular
    Joined
    May 2007
    Posts
    81
    Location

    Solved: Populate Specific Column Cell based on ListBox Selection

    Gurus, I need your help

    I have a multicolumn Listbox populated by a worksheet range.

    When I select an item in the Listbox it's value populates a Textbox and an Input Box allows a value entry to another Textbox.

    I need to transfer the Inputbox value to another worksheet containing the Listbox values, however, the Listbox values are column fields in the worksheet

    I've attached the workbook
    Kindest Regards,
    Mike

    I love to Excel

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I presume you want to transfer the miles to the Data sheet, but a new row every time, or only if there is no room in any existing row?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    May 2007
    Posts
    81
    Location
    That is correct.

    The miles(kilometres) would populate the first available cell in the column matching the Fleet ID Number
    Kindest Regards,
    Mike

    I love to Excel

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Okay, try this
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    May 2007
    Posts
    81
    Location
    Mr X.........getting close now

    What I've found is:

    If you enter a mileage for the same ID more than once.....no problem, populates perfectly in the correct column, however,

    with the next ID chosen their mileage populates every cell, in the correct column, instead of just the first available empty cell in the correct column

    I think it has something to do with the "For Next" statement
    Kindest Regards,
    Mike

    I love to Excel

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Here you go
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Regular
    Joined
    May 2007
    Posts
    81
    Location


    Well done Mr.X

    I owe you one
    Kindest Regards,
    Mike

    I love to Excel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •