Replicate worksht 20 times in workbook

joanong

New Member
Joined
May 15, 2003
Messages
35
Hi,
I have a worksheet which I would need to replicate 20 times in the workbook. Is there a way I can do it so that I don't have to right-click and copy worksheet manually for 20 times?

Many thanks. :wink:
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Put the code into a module (ALT-F11, insert module, paste code in module)

Go to the sheet you want to copy and run the macro.

Code:
Sub CopySheet()
    Dim sh As Worksheet
    Dim i As Long
    Set sh = ActiveSheet
    For i = 1 To 20 Step 1
        sh.Copy before:=sh
    Next
End Sub
 
Upvote 0
1) press CTRL while you drag the tab of the worksheet to the right (or left)
:wink:
2) if there are 5 sheets : select sheet1, then hold the SHIFT and select sheet5, (sheet 1->5 will be selected) hold CTRL + drag the tab of sheet1 to the right or left. Result : you will have 10 sheets... with only one copy-action
 
Upvote 0

Forum statistics

Threads
1,221,689
Messages
6,161,302
Members
451,695
Latest member
Doug Mize 1024

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