Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Brian, here is one way,
Sub test() If Weekday(Range("A1"), vbSunday) = 1 Then '*****if its a Sunday MsgBox "this is a Sunday" Else '*****If not a Sunday MsgBox "this is Not a Sunday" End If End Sub -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "Brian" wrote in message ups.com... I want to prompt the user if the date he entered is not a Sunday. It might not be the Sunday in the current week but any Sunday. Is this possible in VBA? Thanks in advance Brian |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert weekday date to the next sunday date | Excel Worksheet Functions | |||
Check to see if date is = to Sunday | Excel Programming | |||
Check to see if date is = to Sunday | Excel Programming | |||
Date Command to Get the Sunday Before the First of the Month | Excel Worksheet Functions | |||
adding day (sunday, Monday) to date | Excel Worksheet Functions |