ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Date Check (https://www.excelbanter.com/excel-programming/377559-date-check.html)

Aaron

Date Check
 
I am looking for code that does the following
Looks at active cell
Checks to see if the date value is a Friday date and if it is within 4 days
of todays date. If so Varible x = "OK"

Thanks,
Aaron

Don Guillett

Date Check
 
Sub iffriday()
c = Weekday(ActiveCell)
If c = 6 And c = 2 And c <= 10 Then MsgBox "ok"
End Sub


--
Don Guillett
SalesAid Software

"Aaron" wrote in message
...
I am looking for code that does the following
Looks at active cell
Checks to see if the date value is a Friday date and if it is within 4
days
of todays date. If so Varible x = "OK"

Thanks,
Aaron





All times are GMT +1. The time now is 04:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com