feildannie22
New Member
- Joined
- Jun 26, 2012
- Messages
- 3
I have several multiselect listboxes on a userform. After the user makes their selections, I would like for the data to be transfered to the same row on the spreadsheet (no matter if there is an empty row above it). I can get this to happen with textboxes and single select listboxes, but not with the multiselect. These are skipped completely.
Here is what I have so far.
"Inspector1" is the multiselect listbox. Any assistance at all would be greatly appreciated.
Here is what I have so far.
Code:
Dim Rab As Long
With Workbooks("NEW MAG DATABASE TEST ONLY 444.xlsm").Worksheets("MAGAZINE DATA")
Rab = .Cells(.Rows.Count, 1).End(xlUp).Row + 1
.Cells(Rab, 1).Value = Me.BuildingNumber1.Value
.Cells(Rab, 2).Value = Me.TextBox1.Text
.Cells(Rab, 3).Value = Me.Inspector1.Value
.Cells(Rab, 4).Value = Me.MagType1.Value
.Cells(Rab, 5).Value = Me.LockType1.Value
.Cells(Rab, 6).Value = Me.HaspType1.Value
End With