If Not Intersect(Selection, [student]) Is Nothing Then作者: dechiuan999 時間: 2010-9-21 13:23
謝謝超級版主。
intersect有學過,卻
不懂得應用。
小弟真該打屁股了。
Sub aa()
Dim mSht As Worksheet
Dim mRng As Range
Set mSht = Worksheets("test")
With mSht
If Not Intersect(Selection, [student]) Is Nothing Then
If TypeName(Selection) = "Range" Then
Set mRng = Selection
MsgBox mRng.Address
End If
End If
End With
End Sub