I have a function that uses a loop (see below) and when I step through it keeps returning a "Loop without Do" error message. WHY? Thanks!<br><br>Public Function NetWorkDays(StartDate As Date, EndDate As Date) As Integer<br>'Counts number of workdays between the two dates<br>'Requires: IsWeekend(bln) and IsHoliday(bln)<br><br><br>Function Name<br>Dim intCount As Integer<br>Dim dtmTemp As Date<br><br>'Get Holiday dates into array<br>MakeHolidayArray<br><br>dtmTemp = StartDate<br>intCount = 0<br> Do While dtmTemp < EndDate<br><br> If IsWeekend(dtmTemp) Then<br> intCount = intCount<br> ElseIf IsHoliday(dtmTemp, mHolidayArray) Then<br> intCount = intCount<br> Else<br> intCount = intCount + 1<br> <br> Loop<br><br>NetWorkDays = intCount<br><br><br>