感謝各位大大,問題已經解決
我稍微修改了一下程式,如下:
Private Sub UserForm_Activate()
Dim i%
i = Worksheets("Database").Range("A65536").End(xlUp).Row
UserForm1.ComboBox1.List = Worksheets("Database").Range("A3:A" & i).Value
Worksheets("Sheet1").Select
End Sub
Private Sub ComboBox1_Change()
If ComboBox1 <> "" Then
With Controls("ComboBox2")
.Clear
.Value = ""
End With
Select Case ComboBox1
Case "櫻花牌"
j = Worksheets("Database").Range("B65536").End(xlUp).Row
UserForm1.ComboBox2.List = Worksheets("Database").Range("B3:B" & j).Value
Case "林內牌"
k = Worksheets("Database").Range("C65536").End(xlUp).Row
UserForm1.ComboBox2.List = Worksheets("Database").Range("C3:C" & k).Value
End Select
End If
End Sub