eti3nne
MIS
- Feb 5, 2004
- 102
I have a spreadsheet with sheets named wc14jul08 then wc11aug08, etc These are a 4-weekly timesheet series with carry-over between sheets.
I would like to generate a new sheet automatically with the new period name as in this case 11aug08 + 28 days ie wc08sep08.
I have some incorrect code to construct the sheetname eg
CurrentShtName = ActiveSheet.Name
DateNew = (Mid(CurrentShtName, 3, 7)) + 28
NewSheet.Name = "wc" & DateNew
Set NewSheet = Worksheets.Add
I need excel to see the actual current sheet name ie wc11aug08 and some improved code.
Any ideas?
Thanks for looking.
I would like to generate a new sheet automatically with the new period name as in this case 11aug08 + 28 days ie wc08sep08.
I have some incorrect code to construct the sheetname eg
CurrentShtName = ActiveSheet.Name
DateNew = (Mid(CurrentShtName, 3, 7)) + 28
NewSheet.Name = "wc" & DateNew
Set NewSheet = Worksheets.Add
I need excel to see the actual current sheet name ie wc11aug08 and some improved code.
Any ideas?
Thanks for looking.