Sub ListOfCompany()
Dim myTbl As Range
Set myTbl = Sheet4.Range("NameOfCompany")
UserForm1.Caption = "表單1"
UserForm1.Label1.Caption = "紀錄表1"
With UserForm1.ListBox1
.ColumnCount = myTbl.Columns.Count
.ColumnWidths = "1.5cm; 1.5cm ; 3cm;2cm"
.Font.Size = 11
.List = myTbl.Value
End With
UserForm1.Show 0
End Sub作者: GBKEE 時間: 2014-4-24 06:21