paste to 7 new sheets

288enzo

Well-known Member
Joined
Feb 8, 2009
Messages
723
Office Version
  1. 2016
Platform
  1. Windows
How would I go about copying one sheet
VBA Code:
Sheets("Dealer Status").Cells.Copy
and paste it into 7 new sheets without having to write
VBA Code:
Sheets.Add Count:=7
Sheets("Sheet7").Paste
Sheets("Sheet6").Paste
Sheets("Sheet5").Paste
Sheets("Sheet4").Paste
Sheets("Sheet3").Paste
Sheets("Sheet2").Paste
Sheets("Sheet1").Paste
Is there a more efficient way or is what I have perfectly okay?

Thank you
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
How about this:

VBA Code:
Sub CopySheetxTimes()
'
    Dim x As Long
'
    For x = 1 To 7                                        ' Create 7 duplicate sheets
        ActiveSheet.Copy After:=Sheets(Sheets.Count)
        ActiveSheet.Name = "Sheet" & x
    Next
End Sub
 
Upvote 0
How about this:

VBA Code:
Sub CopySheetxTimes()
'
    Dim x As Long
'
    For x = 1 To 7                                        ' Create 7 duplicate sheets
        ActiveSheet.Copy After:=Sheets(Sheets.Count)
        ActiveSheet.Name = "Sheet" & x
    Next
End Sub
 
Upvote 0
How about this:

VBA Code:
Sub CopySheetxTimes()
'
    Dim x As Long
'
    For x = 1 To 7                                        ' Create 7 duplicate sheets
        ActiveSheet.Copy After:=Sheets(Sheets.Count)
        ActiveSheet.Name = "Sheet" & x
    Next
End Sub
Thank you, I didn't realize that your code also reacted the new sheets. That saved me another line of code, thank you very much for the help.
 
Upvote 0

Forum statistics

Threads
1,215,416
Messages
6,124,774
Members
449,187
Latest member
hermansoa

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