Public Function AddBusinessDays( _ ByVal vDate As Variant _ , ByVal vAddBusinessDays As Variant _ ) As Variant
Weekday#1/15/2102#) = vbSunday AddBusinessDays(#1/15/2102#, -2) = #1/12/2102# ' Thu. AddBusinessDays(#1/15/2102#, -1) = #1/13/2102# ' Fri. AddBusinessDays(#1/15/2102#, 0) = #1/13/2102# ' Fri. AddBusinessDays(#1/15/2102#, 1) = #1/16/2102# ' Mon. AddBusinessDays(#1/15/2102#, 5) = #1/20/2102# ' Fri. Weekday(#1/16/2102#) = vbMonday AddBusinessDays(#1/16/2102#, -2) = #1/12/2102# ' Thu. AddBusinessDays(#1/16/2102#, -1) = #1/13/2102# ' Fri. AddBusinessDays(#1/16/2102#, 0) = #1/16/2102# ' Mon. AddBusinessDays(#1/16/2102#, 1) = #1/17/2102# ' Tue. AddBusinessDays(#1/16/2102#, 5) = #1/23/2102# ' Mon.See also:
NextDayOfWeek Function PreviousDayOfWeek Function AgeDifference FunctionvDate: The date to which a number of business days are added. Function returns Null if vDate is Null or cannot be fixed up to a Date. The time component of vDate (if any) is ignored.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.