Hello experts
I try adding word done in column E . if I add is not date in column G and will pops up message box I should add date , if I add isdate in column G should add DONE into cells for column E for each date into cells for column G and will pops up message box , but it seems to writing way of function isdate is wrong .
Private Sub Worksheet_change(ByVal Target As Range)
If Target.Cells.CountLarge > 1 Then Exit Sub
If Not Intersect(Not IsDate(Target, Range("g:g"))) Is Nothing Then
MsgBox ("Please enter valid date in column : g" & RowCount & ". Example: m/dd/yyyy")
End If
If Not Intersect(IsDate(Target, Range("g:g"))) Is Nothing Then
Target.Offset(, -2) = "done"
MsgBox "the date has been changed in cell" & " " & Target.Offset(, 2).Address & VBA.vbCrLf & " the date is " & Target.Offset(, 2).Value, vbExclamation
End If
End Sub