Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Function BusDay1(Optional dtIn As Date) As Boolean
'whether or not the current date is the first business day of the month
Dim FirstOfMnth As Date
If (CLng(dtIn) = 0) Then
dtIn = Date
End If
FirstOfMnth = DateSerial(Year(dtIn), Month(dtIn), 1)
Do While Weekday(FirstOfMnth) = vbSunday Or Weekday(FirstOfMnth) = vbSaturday
FirstOfMnth = FirstOfMnth + 1
Loop
If (FirstOfMnth = dtIn) Then
BusDay1 = True
' Else
' BusDay1 = False
End If
End Function
[code]
MichaelRed
m.red@att.net
There is never time to do it right but there is always time to do it over