Hello,
Still very much a beginner at VBA. I typically can google what I want to do and copy/modify the code from different search results and make it work, but I'm having some difficulty doing that this time. I feel like what I need to do is simple enough so maybe I'm overthinking it, but any help would be greatly appreciated.
Essentially, I create a daily schedule in a worksheet within a workbook of a bunch of other old daily schedules. At the end of each day, I create a copy of today's schedule (current worksheet) and will manually update the tab's name to the next workday date we will work (which are almost always Monday-Friday). So for today (Friday, 9/16/22) I will be copying the tab labeled "Fri 9.16.2022", rename the copied worksheet to the next available business day which is Mon. 9.19.2022. Then I will go into that worksheet and will manually type the date at the top of the worksheet which is a merged cell (B1:O1) as 9/19/22. That cell is formatted so that it displays in the Long Date format (Monday, September 19, 2022). I don't necessarily want it to work on current date but the date in the current workbook as I don't want to be tied to the day we are creating the schedule.
So I want to create a a macro that I can tie to a button in the sheet that does those steps automatically.
Other particulars:
If possible, I would prefer to keep the formatting of the date on the worksheet as the abbreviation of the day (i.e. Mon, Tue, Wed, Thu, Fri) then the date in mm.dd.yyyy format so Mon 9.19.2022, but can live with whatever it can do.
Also, I know it's a bit unconventional, but I prefer the new worksheet to be inserted BEFORE the one we copied or to the left. So Mon 9.19.2022 is left of Fri 9.16.2022.
**Something that would be really nice would be create a message box pop up every time to ask the user to confirm the next weekday is the day they want to make the next schedule (I.e. "Create the schedule for Mon 9.19.2022? Y or N). If they select no, maybe allow them to input the date they want to create or just give the option up front? This would handle those instances where the next business date falls on a potential Holiday or if we need to create one on a weekend (which is fairly rare) or create multiple days ahead of time.
Again, any help would be greatly appreciated.
Still very much a beginner at VBA. I typically can google what I want to do and copy/modify the code from different search results and make it work, but I'm having some difficulty doing that this time. I feel like what I need to do is simple enough so maybe I'm overthinking it, but any help would be greatly appreciated.
Essentially, I create a daily schedule in a worksheet within a workbook of a bunch of other old daily schedules. At the end of each day, I create a copy of today's schedule (current worksheet) and will manually update the tab's name to the next workday date we will work (which are almost always Monday-Friday). So for today (Friday, 9/16/22) I will be copying the tab labeled "Fri 9.16.2022", rename the copied worksheet to the next available business day which is Mon. 9.19.2022. Then I will go into that worksheet and will manually type the date at the top of the worksheet which is a merged cell (B1:O1) as 9/19/22. That cell is formatted so that it displays in the Long Date format (Monday, September 19, 2022). I don't necessarily want it to work on current date but the date in the current workbook as I don't want to be tied to the day we are creating the schedule.
So I want to create a a macro that I can tie to a button in the sheet that does those steps automatically.
Other particulars:
If possible, I would prefer to keep the formatting of the date on the worksheet as the abbreviation of the day (i.e. Mon, Tue, Wed, Thu, Fri) then the date in mm.dd.yyyy format so Mon 9.19.2022, but can live with whatever it can do.
Also, I know it's a bit unconventional, but I prefer the new worksheet to be inserted BEFORE the one we copied or to the left. So Mon 9.19.2022 is left of Fri 9.16.2022.
**Something that would be really nice would be create a message box pop up every time to ask the user to confirm the next weekday is the day they want to make the next schedule (I.e. "Create the schedule for Mon 9.19.2022? Y or N). If they select no, maybe allow them to input the date they want to create or just give the option up front? This would handle those instances where the next business date falls on a potential Holiday or if we need to create one on a weekend (which is fairly rare) or create multiple days ahead of time.
Again, any help would be greatly appreciated.