Ok, Here is my problem, I am wanting to put a time stamp in cell D5 when cell B5 is altered, so I have that part. I was able to do this with a VBA I got from this site (Thanks to pennysaver and everyone else). Now the problem is that I want to do this same procedure again in the same spread sheet but this time when cell E5 is altered cell F5 denotes the change. I have tried entering in the same VBA code twice denoting the changes in range and offset but I get an error message of Ambiguous name detected: Worksheet_Change. So I changed the title to Monday_change, which is the title to one of my tabs, which gets rid of the error message but then the spread sheet does nothing when information is changed in cell E5. Any help here would be greatly appreciated. By the way here is the code I am currently using.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim keyRange As Range
Set keyRange = Range("b5:b44")
If Not Intersect(keyRange, Target) Is Nothing Then
ActiveSheet.Unprotect "password"
Target.Offset(0, 2) = Time
ActiveSheet.Protect "password"
End If
End Sub
Private Sub Monday_Change(ByVal Target As Range)
Dim keyRange As Range
Set keyRange = Range("e5:e44")
If Not Intersect(keyRange, Target) Is Nothing Then
ActiveSheet.Unprotect "password"
Target.Offset(0, 1) = Time
ActiveSheet.Protect "password"
End If
End Sub