谢谢Joforn版主,搞定了,呵呵。
Private Sub Form_Load()
Dim xlApp As Object, xlbok As Object, xlsht1 As Object
Set xlApp = GetObject(, "Excel.Application")
'取得Excel实例
Set xlbok = xlApp.ActiveWorkbook
'取得Excel实例下活动工作簿
Set xlsht1 = xlbok.Worksheets("pw")
'取得Excel实例下活动工作簿的第x表格
xlApp.DisplayAlerts = False
With xlsht1
Dim i As Long
For i = 2 To xlsht1.Range("a65536").End(xlUp).Row
'从第2行 至 从最末行向上查找第一个非空值行的行号
If xlsht1.Cells(i, 1).Text <> "" Then
'判断当 Sheets("系统用户")的A列行号不为空值时
Combo1.AddItem xlsht1.Cells(i, 1).Text
'组合框1的下拉选项条 为 Sheets("系统用户")的A列不含空值的行
End If
Next
End With
xlApp.DisplayAlerts = True
End Sub