Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
It copy the sheet named "Sheet1" If you want the year to be 206 then use this line ActiveSheet.Name = Format(DateSerial(2005, i + 1, 1), "mmm") & "2006" Sub MasterMonthlyCopy() Dim i As Integer Application.ScreenUpdating = False For i = 1 To 11 Sheets("Sheet1").Copy After:=Sheets(Sheets.Count) ActiveSheet.Name = Format(DateSerial(2005, i + 1, 1), "mmm") & Format(Date, "yy") Next Application.ScreenUpdating = True End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "GregR" wrote in message oups.com... I have this macro code which does not work Sub MasterMonthlyCopy() Dim i As Integer Application.ScreenUpdating = False For i = 1 To 11 ActiveSheet.Copy After:=Sheets(Sheets.Count) ActiveSheet.Name = Application.GetCustomListContents(3) & Format(Date, "yy") Next Application.ScreenUpdating = True End Sub What I am trying to accomplish is copy Sheet(1) 11 times and rename the copied sheets to Feb06, Mar06 etc. TIA Greg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Create/modify date for specific sheets? | Excel Discussion (Misc queries) | |||
Modify A Macro | Excel Worksheet Functions | |||
Modify a Macro | Excel Worksheet Functions | |||
Can I modify the YIELD formula to use a monthly frequency? | Excel Worksheet Functions | |||
Modelling 30 years monthly across sheets | Excel Discussion (Misc queries) |