I have this simple Event Macro, which for some reason throws me an
Object Required
error on this line If Not AppDate Is Nothing Then. Any idea what might be causing this?
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim LastRow As Integer
Dim ThisRow As String
Dim AppDate As Variant
Application.EnableEvents = False
LastRow = Cells(Rows.Count, "C").End(xlUp).Row
If Target.Column = 3 Then
ThisRow = Target.Row
AppDate = Target.Value
If Not AppDate Is Nothing Then
(...) Recalculate Date in Column F
Else
End If
End If
Application.EnableEvents = True
End Sub
Any suggestions would be greatly appreciated. Thank you!
Set AppDate = Target.Value(not tested)Set. :-) I have a terriible memory and constantly make mistakes on my Nothings and Sets and such, so I end up cycling through the different syntaxes until it's right. Then it makes perfect sense... until the next time.