Greetings All,
I have a MultiSelect ListBox with a single column of values that I would like to transfer to a sheet across a row
The following code transfers the selected values in the listbox to a single column.
E.G., if the user selects 4 values in the listbox then clicks the commandbutton for the above code the values are transferred to C2-C5
What I'm needing is for those 4 values to be transferred to C2, D2, E2, F2
I'm currently trying to use copy/transpose, but thus far that is not working.
Thank You, Thank You for any help
RT 91
I have a MultiSelect ListBox with a single column of values that I would like to transfer to a sheet across a row
The following code transfers the selected values in the listbox to a single column.
Code:
Private Sub CommandButton2_Click()
Dim i As Log
For i = 0 To ListBox3.ListCount - 1
If Me.ListBox3.Selected(i) = True Then
ThisWorkbook.Sheets("Sheet5").Range("C500").End(xlUp).Offset(1, 0) = Me.ListBox3.List(i, 0)
End If
Next i
End Sub
E.G., if the user selects 4 values in the listbox then clicks the commandbutton for the above code the values are transferred to C2-C5
What I'm needing is for those 4 values to be transferred to C2, D2, E2, F2
I'm currently trying to use copy/transpose, but thus far that is not working.
Thank You, Thank You for any help
RT 91