Jump to content
Sign in to follow this  

Create Multiple Copy Tabs in XLSX

Recommended Posts

Neat little VB script to create multiple copies of a worksheet tab in Excel:


Sub Copier ()
Dim x As Integer
x = InputBox("Enter number of times to copy Sheet1")
For numtimes = 1 To x
ActiveWorkbook.Sheets("Sheet1").Copy _
End Sub

Open the Visual Basic editor (alt + F11) > Insert > Module.

Paste the above text in. Ammend where it says "Sheet 1" to whatever the tab name is you want to duplicate leaving the quote marks in. (Note you need to change the Active workbook line and After line)

Then F5 to execute.



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...