How do I find the start date of a week from a specific date?
2 answers
Try it :-)
Dim FirstDayInWeek, LastDayInWeek As Variant
Dim dtmDate As Date
dtmDate = "15/04/2015"
Start date of the week:
FirstDayInWeek = dtmDate - Weekday(dtmDate, vbUseSystem) + 1 MsgBox FirstDayInWeek
End date of the week
LastDayInWeek = dtmDate - Weekday(dtmDate, vbUseSystem) + 7 MsgBox LastDayInWeek
+4
source to share