erutherford
Active Member
- Joined
- Dec 19, 2016
- Messages
- 449
Thought this would be simple, but I guess not. Column B is what is looked at to determine what goes in the target.offset. Or at least it should? What am I missing?
Code:
Private Sub Worksheet_Change(ByVal Target As Range) 'Auto entry for OK entries
Application.EnableEvents = False
If Not Intersect(Target, Range("B:B")) Is Nothing Then
If Target.Cells.Value = " " Or IsEmpty(Target) Then Exit Sub
If Target.Value = "ok" Then Target.Offset(0, 1).Value = "0" 'Jumps to Col.D - Auto entry
If Target.Value = "ok" Then Target.Offset(0, 5).Value = "4" 'Jumps to Col H - Auto entry
If Target.Value = "ok" Then Target.Offset(1, 0).Select 'Jumps to Col H - Auto entry
If Target.Value <> "ok" Then Target.Offset(0, 1).Select
Application.EnableEvents = True
end if
end Sub