Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
i have several worksheets with the weeks as the title. i need to change for
our new year. Can someone please give me the code to change the worksheets to add 7 days to each worksheet. example 10-8 and 10-15 and 10-22 etc. That would be very helpful Thank you! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub rename_sheets()
Dim MyDate As Date MyDate = "1/1/07" For Each myworksheet In ActiveWorkbook.Sheets myworksheet.Name = Application.WorksheetFunction.Text(MyDate, "mm-dd") MyDate = MyDate + 7 Next End Sub "LEOPARDSHIDEAWAY" wrote: i have several worksheets with the weeks as the title. i need to change for our new year. Can someone please give me the code to change the worksheets to add 7 days to each worksheet. example 10-8 and 10-15 and 10-22 etc. That would be very helpful Thank you! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You are a life saver thank you so much!!!!!
"rdwj" wrote: Sub rename_sheets() Dim MyDate As Date MyDate = "1/1/07" For Each myworksheet In ActiveWorkbook.Sheets myworksheet.Name = Application.WorksheetFunction.Text(MyDate, "mm-dd") MyDate = MyDate + 7 Next End Sub "LEOPARDSHIDEAWAY" wrote: i have several worksheets with the weeks as the title. i need to change for our new year. Can someone please give me the code to change the worksheets to add 7 days to each worksheet. example 10-8 and 10-15 and 10-22 etc. That would be very helpful Thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How use info in Excel shared worksheets to create new worksheets | Excel Worksheet Functions | |||
how do i copy a cell in worksheets 10 to the other 9 worksheets | New Users to Excel | |||
How do i assign the ActiveWorkbook.Worksheets to a worksheets object? | Excel Worksheet Functions | |||
Using Worksheets | New Users to Excel | |||
Assigning Cells in worksheets to other data in other worksheets. | Excel Discussion (Misc queries) |