Answers for "excel vba if sunday or staurday"

VBA
1

excel vba if sunday or staurday

MsgBox Weekday(my_date, vbMonday) > 5
' Or -------------------------------------------------------
Public Function IsWeekend(InputDate As Date) As Boolean
    Select Case Weekday(InputDate)
        Case vbSaturday, vbSunday
            IsWeekend = True
        Case Else
            IsWeekend = False
    End Select
End Function
Posted by: Guest on February-02-2021
1

excel vba How to determine if a date falls on the weekend?

MsgBox Weekday(MyDate, vbMonday) > 5
Posted by: Guest on March-25-2020

Code answers related to "VBA"

Browse Popular Code Answers by Language