erutherford
Active Member
- Joined
- Dec 19, 2016
- Messages
- 449
On this sheet there are two command buttons and code for SelectionChange. Here is the code for the SelectionChange:
This is what I am trying to do. If you enter a number 4 in column H, you are automatically taken to Col. I same row. I'll add a Msgbox telling the user to enter the required data, but for now I just trying to do the above.
I have this same code working fine on other sheets!
thanks
Code:
If Not Intersect(Target, Range("H:H")) Is Nothing Then
If Target.Cells.Value = " " Or IsEmpty(Target) Then Exit Sub
If Target.Value = "4" Then Target.Offset(0, 1).Select
End If
This is what I am trying to do. If you enter a number 4 in column H, you are automatically taken to Col. I same row. I'll add a Msgbox telling the user to enter the required data, but for now I just trying to do the above.
I have this same code working fine on other sheets!
thanks