Deberás crear tu propia función para saber cuantos domingos existen entre un
rango de fechas, para ello puedes utilizar lo siguiente:
Funcion ContarDomingos (FechaInicio As Date, FechaTermino As Date)
sDomingos = 0
While FechaInicio <= FechaTermino
If Weekday(FechaInicio) = vbSunday Then
sDomingos = sDomingos + 1
End If
FechaInicio = FechaInicio + 1
Wend
ContarDomingos = sDomingos
End Function
Espero que te sirva...
Saludos,
Jhonny Vargas P.
esta si es eficiente:
domingos = DateDiff("ww", FechaInicial, FechaFinal, vbSunday)
If Weekday(FechaInicial) = vbSunday Then domingos = domingos + 1
FRV
Jhonny Vargas P. <jhonny...@indexa.cl> escribió en el mensaje de
noticias OwWctiUjAHA.1224@tkmsftngp05...