ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Copy worksheets (https://www.excelbanter.com/excel-discussion-misc-queries/221506-copy-worksheets.html)

mj

Copy worksheets
 
I want to copy the same worksheet 30 times in one workbook. Is that possible
without doing the copy worksheet 30 times?

Bob I

Copy worksheets
 
copy once, group the two, copy them, group the 4, copy
them..................

MJ wrote:

I want to copy the same worksheet 30 times in one workbook. Is that possible
without doing the copy worksheet 30 times?



eksh

Copy worksheets
 
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 Befo=Sheets(1)
Next i

End Sub

"Bob I" wrote:

copy once, group the two, copy them, group the 4, copy
them..................

MJ wrote:

I want to copy the same worksheet 30 times in one workbook. Is that possible
without doing the copy worksheet 30 times?





All times are GMT +1. The time now is 12:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com