Hi
I have a worksheet change in a sheet but need to a second one. I know you can't have two changes in a sheet so is there a way I could combine the two changes below?
Private Sub worksheet_change(ByVal target As Range)
If target.Column <> 2 Ortarget.Cells.Count > 1 Then Exit Sub
Iftarget.Offset(0, -1) = "" Then
target.Offset(0,-1) = Now
target.Offset(0,8) = "USERNAME"
End If
End Sub
Private Sub worksheet_change(ByVal target As Range)
If Not Intersect(target,Range("E:E")) Is Nothing Then
Select Casetarget
Case"REJECT"
MsgBox"Please enter a reason for rejection"
End Select
End If
End Sub
I have a worksheet change in a sheet but need to a second one. I know you can't have two changes in a sheet so is there a way I could combine the two changes below?
Private Sub worksheet_change(ByVal target As Range)
If target.Column <> 2 Ortarget.Cells.Count > 1 Then Exit Sub
Iftarget.Offset(0, -1) = "" Then
target.Offset(0,-1) = Now
target.Offset(0,8) = "USERNAME"
End If
End Sub
Private Sub worksheet_change(ByVal target As Range)
If Not Intersect(target,Range("E:E")) Is Nothing Then
Select Casetarget
Case"REJECT"
MsgBox"Please enter a reason for rejection"
End Select
End If
End Sub