Private Sub Worksheet_Change(ByVal Target As Range) If ActiveCell.Column = 3 Then ActiveCell.Offset(0, -1).Select ElseIf ActiveCell.Column = 4 Then ActiveCell.Offset(0, -2).Select End If End Sub
Private Sub Worksheet_Change(ByVal Target As Range) Dim cal As Integer Dim xy As Variant Dim I As Integer, cr() As String xy = Array("對應座標") '對應座標 : A=1~Z=26;AA=27~AZ=52 cal = UBound(xy) For I = 0 To cal cr = Split(xy(I), ",") If Int(cr(0)) = Target.Row And Int(cr(1)) = Target.Column Then If I < cal Then cr = Split(xy(I + 1), ",") Else cr = Split(xy(0), ",") End If Cells(Int(cr(0)), Int(cr(1))).Select Exit For End If Next End Sub