mickyflash
Board Regular
- Joined
- Jan 29, 2009
- Messages
- 77
Hi, I understand I cant have two worksheet_changes but I really need both of these codes to work together and I am having trouble merging them into one.
each code runs well independently but I cant get them to work together. Thanks in Advance
each code runs well independently but I cant get them to work together. Thanks in Advance
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Const ColumnsToMonitor As String = "C:C"
Const DateColumn As String = "Z"
Application.EnableEvents = False
If Not Intersect(Target, Columns(ColumnsToMonitor)) Is Nothing Then
Intersect(Target.EntireRow, Columns(DateColumn)).Value = Date
End If
Application.EnableEvents = True
End Sub
Code:
Private Sub Worksheet_Change_release(ByVal Target As Range)
Const ColumnsToMonitor As String = "M:M"
Const DateColumn As String = "FW"
Application.EnableEvents = False
If Not Intersect(Target, Columns(ColumnsToMonitor)) Is Nothing Then
Intersect(Target.EntireRow, Columns(DateColumn)).Value = Date
End If
Application.EnableEvents = True
End Sub