Private Sub CommandButton1_Click()
Dim rngMultiColumn As Range
Set rngMultiColumn = Range("A1:L1499")
ListBox1.ColumnCount = 12
ListBox1.RowSource = "A1:L1499"
With UserForm1.ListBox1
'Set column widths
.ColumnWidths = "100;50;50;40"
'Populate listbox
.List = rngMultiColumn.Cells.Value 問題錯在這里
End With
End Sub作者: 軒云熊 時間: 2021-6-3 00:42