Magoosball
Board Regular
- Joined
- Jun 4, 2017
- Messages
- 70
- Office Version
- 365
Hello
I have a start date in cell C7 and an end date in cell C9. I'm trying to write a macro that will create a new sheet for each day between the 2 date values and name the sheet the weekday of that date.
Example:
Cell C7 = 3/29/2019
Cell C9 = 4/2/2019
This should create 5 new sheets named "Friday", "Saturday", "Sunday", "Monday", "Tuesday"
Example 2:
Cell C7 = 4/2/2019
Cell C9 = 4/2/2019
This Should create 1 new sheet named "Tuesday"
Condition: If the date range between the start and end date is greater than 7 then create a message-box stating the start date can't span more than 1 week from the end date.
Thank you!!
I have a start date in cell C7 and an end date in cell C9. I'm trying to write a macro that will create a new sheet for each day between the 2 date values and name the sheet the weekday of that date.
Example:
Cell C7 = 3/29/2019
Cell C9 = 4/2/2019
This should create 5 new sheets named "Friday", "Saturday", "Sunday", "Monday", "Tuesday"
Example 2:
Cell C7 = 4/2/2019
Cell C9 = 4/2/2019
This Should create 1 new sheet named "Tuesday"
Condition: If the date range between the start and end date is greater than 7 then create a message-box stating the start date can't span more than 1 week from the end date.
Thank you!!