Worksheet Copier

L

Legacy 436357

Guest
Hello,

Does anyone know code that will copy a template worksheet multiple times?

Original Sheet Name: Week Template

I plan to have one worksheet for each week in the year (52 plus the 'Week Template' sheet

Paste conditions:

1) row height
2) column width
3) fonts style sizes and colors
4) borders and border colors
5) cell fills
6) formulas

*basically all forms, fits, and functions of original sheet

Requests:

1) select the worksheet name to copy (Week Template)
2) select the number of sheets to be copied (52)
3) name the worksheets Week1, Week 2, Week 3, etc.

Thank you so very much for your assistance
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
How about
Code:
Sub xjohnson()
   Dim i As Long
   
   For i = 1 To 52
      Sheets("Week template").Copy , Sheets(i)
      ActiveSheet.Name = "Week " & i
   Next i
End Sub
 
Upvote 0
Your code works there was something wrong with my workbook. I created a new workbook and no issues.

Thank you very much Fluff
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,025
Members
449,060
Latest member
LinusJE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top