Hi,
I created a worksheet change event with the idea that whenever a user enters a "yes" into column J, it would pop a user input. However, when I am deleting rows, it is erroring out. I have tried incorporating an 'on error resume next' but then it is popping up no matter what changes. It may be that I am putting this in the wrong place.
Can anyone help?
I created a worksheet change event with the idea that whenever a user enters a "yes" into column J, it would pop a user input. However, when I am deleting rows, it is erroring out. I have tried incorporating an 'on error resume next' but then it is popping up no matter what changes. It may be that I am putting this in the wrong place.
Can anyone help?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("$J:$J")) Is Nothing Then
If UCase(Target) = "YES" Then
Pub_DispFile = Range("Main_ShipRef").Offset(Target.Row - 2)
Pub_CurrentRow = Target.Row - 2
UFSplit.Show
End If
End If
End Sub