Chickenmanc
New Member
- Joined
- Mar 26, 2019
- Messages
- 8
Hello,
I have multiple cell to check just doing one to test at the moment. I have a date in that is input to that cell I want to run a check to make sure its 3 months in the future. If not pop-up a message box letting the user know check the date.
I have multiple cell to check just doing one to test at the moment. I have a date in that is input to that cell I want to run a check to make sure its 3 months in the future. If not pop-up a message box letting the user know check the date.
Code:
Sub check_for_errors()
Dim cd As Date
cd = DateSerial(Year(Date), Month(Date) + 3, 1)
If activeworksheet.Range("H23") < cd Then
MsgBox "check your date"
Else
End If
End Sub
[code]