Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I would like to copy a sample sheet from one workbook into a new workbook. This should happen repeatidly (within for ... next statement), as the copied sheet will be filled with data. So I wrote following macro: Sub CopySheet() Dim NewWb As Workbook Dim NewWs As Worksheet Set NewWb = Workbooks.Add For i = 1 To 5 SheetTemplate. Copy NewWb Set NewWs = ActiveSheet '...Code Next i End Sub .... which doesn't work. I get the 1004 run-time error (copy failed). Can anybody help me to fix it? Thank you! Mike |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy sheet cells into differnt workbook/sheet, How? | Excel Discussion (Misc queries) | |||
Copy Sheet from One workbook to another EXISTING workbook | Excel Programming | |||
automatic copy and paste from sheet to sheet in a workbook | Excel Programming | |||
Copy sheet from one workbook to another workbook problem | Excel Programming |