Private Sub ComboBox1_Change()
Dim mSht As Worksheet
Dim mAr
Dim s$, j%, m%
Dim mStr$, mStr1$
Dim mRng
Dim mRng1 As Range
Set mSht = Worksheets("L_Data01")
With mSht
With ComboBox1
.Width = .Width * 0.5
.ColumnCount = 1
mAr = .List
.Value = .List(.ListIndex)
mStr = .Value
End With
Set mRng1 = .Columns("c").Find(what:=mStr, lookat:=xlWhole, searchorder:=xlByRows)
If Not mRng1 Is Nothing Then
m = mRng1.Row
Else
MsgBox "請先選取指定姓名"
Exit Sub
End If
mRng = .Range("a" & m).Resize(6, 8)
With ListBox1
.Width = .Width * 1
.ColumnCount = 8
.ColumnHeads = True '工作表的第一列表頭無法顯示
.List = mRng
End With
End With
End Sub