Th following code performs flawlessly. The code is in a sheet module as I do not wish for it to run throughout the entire workbook. The code calls for cell selection anytime a change is made to certain cells. I would like for the cell selections to be made upon pressing the numeric enter key instead as sometimes the cells will not require changing. Ideas?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Whoa
Application.EnableEvents = False
If Not Target.Cells.CountLarge > 1 Then
If Not Intersect(Target, Columns(6)) Is Nothing Then ' Column F to G
Target.Offset(, 1).Select
ElseIf Not Intersect(Target, Columns(7)) Is Nothing Then ' Column G to O
Target.Offset(, 8).Select
ElseIf Not Intersect(Target, Columns(15)) Is Nothing Then ' Column O to U
Target.Offset(, 6).Select
ElseIf Not Intersect(Target, Columns(21)) Is Nothing Then ' Column U to A Down 1
Target.Offset(1, -20).Select
End If
End If
Letscontinue:
Application.EnableEvents = True
Exit Sub
Whoa:
MsgBox Err.Description
Resume Letscontinue
End Sub
[end code]