Так я загружаю несколько списков столбцов из листа. Я уверен, что это может быть сделано с массивами, но вам нужно 5 из них, или массив из нескольких D
With Me.ListBox2
.Clear 'clear to set up the list
.ColumnCount = 4
.ColumnWidths = "60;70;65;150"
For i = 0 To LastRow - 2 'data starts in Row2
If LastRow >= 2 Then
.AddItem
.List(i, 0) = DATAsheet.Cells(i + 2, 1) 'Column of the ID, data starts in row 2
.List(i, 1) = DATAsheet.Cells(i + 2, 4) 'Column of the Date, data starts in row 2
.List(i, 2) = DATAsheet.Cells(i + 2, 2) ' Column of motor Size, data starts in row 2
.List(i, 3) = DATAsheet.Cells(i + 2, 3) ' Column of motor SN, data starts in row 2
Else ' Do nothing
End If
Next i
End With