I have two worksheet change events, how can I code them on one sheet
Code1
Code2
Code1
VBA Code:
Private Sub worksheet_change(ByVal target As Range)
If Intersect(target, Range("D4:D67")) Is Nothing Then Exit Sub
Application.EnableEvents = False
On Error GoTo ErrorRoutine
target = target + CellCopy
ErrorRoutine:
Application.EnableEvents = True
End Sub
Private Sub Worksheet_SelectionChange(ByVal target As Range)
If Intersect(target, Range("D4:D67")) Is Nothing Then Exit Sub
CellCopy = target
End Sub
Code2
VBA Code:
Sub worksheet_change(ByVal target As Range)
Set target = Range("E4")
If target.Value = True Then
Call EMJokerPlusUnHide
End If
If target.Value = False Then
Call EMJokerPlusHide
End If
End Sub