View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
gti_jobert[_86_] gti_jobert[_86_] is offline
external usenet poster
 
Posts: 1
Default Calculating Days Between Dates


No matter guys, have came up with solution now;


Code:
--------------------

i = 0: V = 0
Do
dte = sDate + i
If (DatePart("w", dte, vbMonday) 5) Then
'do nothing
Else
V = V + 1
End If
i = i + 1
Loop Until Left(dte, 8) = Left(eDate, 8)

--------------------


--
gti_jobert
------------------------------------------------------------------------
gti_jobert's Profile: http://www.excelforum.com/member.php...o&userid=30634
View this thread: http://www.excelforum.com/showthread...hreadid=530515