VBA ile işgünü hesaplama basit ama aradım bulamadım
Function isgunu(ilk, son)
Dim t As Date
Dim a, b
b = 0
For t = ilk To son Step 1
a = Weekday(t, vbMonday)
Select Case a
Case Is = 1 'PAZARTESİ
b = b + 1
Case Is = 2 'SALI
b = b + 1
Case Is = 3 'ÇARŞAMBA
b = b + 1
Case Is = 4 'perşembe
b = b + 1
Case Is = 5 'cuma
b = b + 1
Case Is = 6 'cumartesi
b = b
Case Is = 7 'pazar
b = b
End Select
Next
isgunu = b
End Function
Function isgunu(ilk, son)
Dim t As Date
Dim a, b
b = 0
For t = ilk To son Step 1
a = Weekday(t, vbMonday)
Select Case a
Case Is = 1 'PAZARTESİ
b = b + 1
Case Is = 2 'SALI
b = b + 1
Case Is = 3 'ÇARŞAMBA
b = b + 1
Case Is = 4 'perşembe
b = b + 1
Case Is = 5 'cuma
b = b + 1
Case Is = 6 'cumartesi
b = b
Case Is = 7 'pazar
b = b
End Select
Next
isgunu = b
End Function