You can use the weekday function:
Dim adate As Date
Dim ayear As Integer
ayear = 2002
adate = "01-01-" & ayear
Do While Weekday(adate, vbSunday) <> 6
adate = adate + 1
Loop
MsgBox adate
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.