View Single Post
 
Old 08-18-2011, 10:55 PM
Catalin.B Catalin.B is offline Windows Vista Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

enter in cell B8 this formula =WEEKDAY(B7), and refer in your code to cell B8...
Now, this part of the code should work

If Not Weekday(Worksheets("SETUP").Range("B8")) = 2 Then
MsgBox "Start Date must be a Monday (week beginning)", vbInformation
Range("B7").Select
ValidateFields = True
Exit Function
End If
Reply With Quote