Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
The Monday of the previous week with VBA
Hello,
I have a date from Monday to Friday in the current week. I need to calculate the date of the Monday of the previous week in VBA. How can I do that ? Thanks a lot Gérard |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
The Monday of the previous week with VBA
=A1-WEEKDAY(A1,2)+1
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "Gérard Ducouret" wrote in message ... Hello, I have a date from Monday to Friday in the current week. I need to calculate the date of the Monday of the previous week in VBA. How can I do that ? Thanks a lot Gérard |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
The Monday of the previous week with VBA
Date-(weekday(date,2)+6)
-- Regards, Tom Ogilvy "Gérard Ducouret" wrote in message ... Hello, I have a date from Monday to Friday in the current week. I need to calculate the date of the Monday of the previous week in VBA. How can I do that ? Thanks a lot Gérard |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
The Monday of the previous week with VBA
Thanks a lot Tom!
That works ! Gérard "Tom Ogilvy" a écrit dans le message de ... Date-(weekday(date,2)+6) -- Regards, Tom Ogilvy "Gérard Ducouret" wrote in message ... Hello, I have a date from Monday to Friday in the current week. I need to calculate the date of the Monday of the previous week in VBA. How can I do that ? Thanks a lot Gérard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
WEEKNUM change start of week to a monday | Excel Discussion (Misc queries) | |||
Display Monday of each week | Excel Discussion (Misc queries) | |||
Changing First day of week to Monday (Excel 2007) | Excel Discussion (Misc queries) | |||
date of monday of each week automatically | Excel Discussion (Misc queries) | |||
How can I get the monday of a given week number? | Excel Discussion (Misc queries) |