you could paste in this function:
Function NoSundays(FromDate As Date, ToDate As Date)
'NoSundays returns the number of workdays (excl Sun) between
''FromDate & 'ToDate' inclusive
FromDate = FromDate - 1
Do
FromDate = FromDate + 1
If WeekDay(FromDate) > 1 Then NoSundays = NoSundays + 1
Loop Until FromDate = ToDate
End Function
call it via:
NoSundays([FromDate],[ToDate])