Copy worksheets

  • Thread starter Thread starter MJ
  • Start date Start date
M

MJ

I want to copy the same worksheet 30 times in one workbook. Is that possible
without doing the copy worksheet 30 times?
 
copy once, group the two, copy them, group the 4, copy
them..................
 
Hi MJ,

If you need the function very frequently, you may use the following code
Sub MacroCopyWS()

Answer = InputBox("How many worksheets you want to duplicate?", "Copy
worksheet", 30)

For i = 1 To Answer
ActiveSheet.Copy Before:=Sheets(1)
Next i

End Sub
 

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