If rTmpAdr = "無" Then
Debug.Print "刪除 " & sTmpAdr
ElseIf rTmpAdr <> sTmpAdr Then
Debug.Print "插入 " & sTmpAdr
ElseIf rTmpAdr = sTmpAdr Then
Debug.Print "修改 " & sTmpAdr
Else
Debug.Print "其他 " & sTmpAdr
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Debug.Print Target.Address, "Worksheet_SelectionChange"
Set rTmp = Target: sTmpAdr = rTmp.Address
End Sub作者: 劉大胃 時間: 2021-9-24 13:15