TheShaunMichael
Board Regular
- Joined
- Oct 24, 2009
- Messages
- 57
Have a multi-select enabled list box on a userform. Would like to transfer a list of the selected values to Range("R2"). I've got all of the selected values in an array but am struggling with putting the array values into a cell.
For X = 0 To Me.lbSourceLanguage.ListCount - 1
If Me.lbSourceLanguage.Selected(X) Then
ArrItem = ArrItem + 1
ReDim Preserve arr(ArrItem)
arr(ArrItem) = Me.lbSourceLanguage.List(X)
End If
Next X
Where do I go from here?
Have tried:
.Cells(2, 18).value = arr
.Range("R2").value = arr
and other similar strings..
For X = 0 To Me.lbSourceLanguage.ListCount - 1
If Me.lbSourceLanguage.Selected(X) Then
ArrItem = ArrItem + 1
ReDim Preserve arr(ArrItem)
arr(ArrItem) = Me.lbSourceLanguage.List(X)
End If
Next X
Where do I go from here?
Have tried:
.Cells(2, 18).value = arr
.Range("R2").value = arr
and other similar strings..