copying full worksheets

  • Thread starter Thread starter Jerry
  • Start date Start date
J

Jerry

How can I copy a worksheets a number of times. User input as to the number
of worksheets to be created and copy sheet1 that number of times. Thanks in
advance.
 
Try the below

Sub Macro1()
intCount = 5
For intTemp = 1 To intCount
Sheets("asd a").Copy After:=Sheets("asd a")
Next
End Sub

If this post helps click Yes
 
Hi

Try this:

Sub CopySheets()
Dim ShToCopy
Dim NumOfCopies As Long

Set ShToCopy = Worksheets("Sheet1") 'Change sheet name as required
NumOfCopies = InputBox("How many copies of the worksheet do you need?")

For sh = 1 To NumOfCopies
ShToCopy.Copy after:=Worksheets(Worksheets.Count)
Next
End Sub

Regards,
Per
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top