'除掉星期天之后有几个工作日
'tmtony http://bbs.office-cn.net
'传递开始日期和结束日期进去就可以了
Public Function GetWorkDays(datStart As Date, rdatEnd As Date) As Long
Dim n As Long
n = DateDiff("WW", datStart, rdatEnd)
If Weekday(datStart, vbMonday) = 7 Then n = n + 1
GetWorkDays = n
End Function