Mikeymike_W
Board Regular
- Joined
- Feb 25, 2016
- Messages
- 171
Hi Everyone,
I had created a form using excel 2013 but now need to recreate the same form in excel 2010.
I have just about finished, just copied and pasted all the code over.
There is one formula (so far that worked in 2013 but does nothing now so was wondering if there is something I need to change for 2010?
If Target.Address(0, 0) = "G10" Then
If IsDate(Target.Value) Then
If Target.Value < DateAdd("m", -4, Date) Then MsgBox "The CT Scan is more than 4 months old", , "CT Date"
Target.Select
End If
End If
Then should tell the user if the date is more than 4 months from todays date but it does nothing now.
Thanks in advance for all your help,
Mike
I had created a form using excel 2013 but now need to recreate the same form in excel 2010.
I have just about finished, just copied and pasted all the code over.
There is one formula (so far that worked in 2013 but does nothing now so was wondering if there is something I need to change for 2010?
If Target.Address(0, 0) = "G10" Then
If IsDate(Target.Value) Then
If Target.Value < DateAdd("m", -4, Date) Then MsgBox "The CT Scan is more than 4 months old", , "CT Date"
Target.Select
End If
End If
Then should tell the user if the date is more than 4 months from todays date but it does nothing now.
Thanks in advance for all your help,
Mike