Randomhero180
New Member
- Joined
- Sep 14, 2011
- Messages
- 44
If any one can help me debug this code that would be awesome.
It all works properly but when I do some things like fill multiple cells anywhere on the sheet I get a
Run-time error '13'
Type-mismatch
Like i said it is not when I am doing anything in the cells that utilize the code, its anywhere, it doesn't prevent me from using it, just annoying for the other people using it.
Thanks in advance!
RH
It all works properly but when I do some things like fill multiple cells anywhere on the sheet I get a
Run-time error '13'
Type-mismatch
Like i said it is not when I am doing anything in the cells that utilize the code, its anywhere, it doesn't prevent me from using it, just annoying for the other people using it.
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rngData As Range
Set rngData = ActiveSheet.Range("B19:G12679")
If Not Application.Intersect(rngData, Target) Is Nothing Then
Cells(Target.Row, 8).Value = Now
End If
If Target.Cells.Value = "Estimate Approved" Then
Cells(Target.Row, 10).Value = Now
End If
If Target.Cells.Value = "Contact Sheet Available/Disc Sent" Then
Cells(Target.Row, 11).Value = Now
End If
Set rngData = Nothing
End Sub
Thanks in advance!
RH