Multiple list and combo boxes on userform send selection to bottom row of table - help required.

dizzydunham

New Member
Joined
Mar 22, 2014
Messages
30
So far I have learned how to populate the list boxes and combo boxes from the table and ranges. (userform)
I have learned how to send the multi selected items of 1 list box to a selected cell on command button click.
I have in the past sent values (textbox) to the bottom row of a table using row count method.

My problem(s) are sending selected items to the last row of the table rather than a selected cell. (I'm guessing I may be on right path but not laid the code out correctly)

AND how to work with more than 1 list box when sending the selections to the table.column.

Unlike textboxes I have found out you cant just send
.Offset (rowcount,5) = listbox.value
.offset (rowcount,6) = nextlistbox.value

searched the web for what feels like a life time - any pointers or code samples gratefully received.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Thanks for the link, It helped me see what I was after doing.
Code:
    Dim i As Long, strTemp As String
Dim j As Variant
Sheet1.Unprotect Password:=x
        For i = 0 To LISTCENTRE.ListCount - 1
            If LISTCENTRE.Selected(i) Then strTemp = strTemp & LISTCENTRE.List(i) & ", "
        Next i
 
    If Len(strTemp) Then
        strTemp = Left(strTemp, Len(strTemp) - 2)
        rowcount = Worksheets("VAF Tracker").Range("A1").CurrentRegion.Rows.Count
      Sheet1.Cells(rowcount, "B") = strTemp
   
        End If
I believe it was my lay out I had wrong and the link example showed clearly the way out for me.

Thanks yet again.
 
Last edited:
Upvote 0
Glad you got it sorted & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top