Date Check

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Sub iffriday()
c = Weekday(ActiveCell)
If c = 6 And c >= 2 And c <= 10 Then MsgBox "ok"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top