Dim mSht As Worksheet
Dim mRng As Range
Dim mRow As Integer
Set mSht = Worksheets("test")
With mSht
If TypeName(Selection) = "Range" Then
If Not Intersect(Selection, [student]) Is Nothing Then
Set mRng = Selection
MsgBox mRng.Address
mRow = mRng.Row
End If
End If
End With
End Sub
謝謝各位大大。作者: 暗黑 時間: 2010-9-22 11:08
Private Sub Worksheet_Change(ByVal Target As Range)