Public Flag As Boolean
Private Sub Worksheet_Change(ByVal Target As Range)
If Flag Then Exit Sub
If Not Application.Intersect(Target, Range("a8:a17")) Is Nothing Then
Flag = True
Target.Offset(0, 1).ClearContents
Target.Offset(1, 0).Select
Flag = False
End If
If Not Application.Intersect(Target, Range("a23:a35")) Is Nothing Then
Flag = True
Target.Offset(0, 1).ClearContents
Target.Offset(1, 0).Select
Flag = False
End If
'------------------------------------------------------------------------
'------------------------------------------------------------------------
If Flag Then Exit Sub
If Not Application.Intersect(Target, Range("b8:b17")) Is Nothing Then
Flag = True
Target.Offset(0, -1).ClearContents
Target.Offset(1, 0).Select
Flag = False
End If
If Not Application.Intersect(Target, Range("b23:b35")) Is Nothing Then
Flag = True
Target.Offset(0, -1).ClearContents
Target.Offset(1, 0).Select
Flag = False
End If
'------------------------------------------------------------------------
End Sub