Write Contents of Multi Choice Box
You have filled a multi-select list box and your customers have figured out that they can select multiple items. Now how are you going to copy them to a spreadsheet.My example may be a little hard to follow because I had to parse the data into 2 fields as it was written to cells.
For U = 0 To usrCreateNew.cmbTEaccts.ListCount - 1
If usrCreateNew.cmbTEaccts.Selected(U) = True Then
Cells(DaRow + G, 1) = _
Right(usrCreateNew.cmbTEaccts.List(U), _
Len(usrCreateNew.cmbTEaccts.List(U)) - 7)
Cells(DaRow + G, 2) = _
Left(usrCreateNew.cmbTEaccts.List(U), 6)
For szCol = 33 To 77 Step 4
Cells(DaRow + G, szCol) = 0
Next szCol
G = G + 1
Else
End If
Next U
Play around with Multi-Select lists. They can be really useful.
|