How can I pass all the items in a listbox to a single cell with comma delimiter in VBA?
Here's my current code, where I pass each item to an array, then set the cell value to the array, but it doesn't work.
Dim histReturn() As Long
Dim j As Integer
For j = 0 To Me.history_lbx.ListCount - 1
ReDim Preserve histReturn(j)
Dim x As Variant
For Each x In histReturn
Cells(i, 4).Value = Cells(i, 4).Value & x & ", "
Next x