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 basAddWrkDays(Optional NDays As Integer = 5, Optional DateIn As Date) As Date
Dim TestDays As Integer
Dim Idx As Integer
TestDays = NDays
If (CLng(DateIn) = 0) Then
DateIn = Now
End If
Do Until TestDays = 0
If (Not (Weekday(DateIn + Idx) = 1) And Not (Weekday(DateIn + Idx) = 7)) Then
TestDays = TestDays - 1
End If
Idx = Idx + 1
Loop
basAddWrkDays = DateAdd("d", Idx, DateIn)
End Function