ERE
Structural
- May 13, 2005
- 35
I am writing a VBA application in Excel to analize data from some testing. I have a formatted template worksheet that needs to be copied for each line of data read into the workbook. Everything works great until the 33 pass through the copy command at which point I get the error message:
Run-Time Error '1004'
Copy method of Worksheet class failed
The command that I think is failing is:
Worksheets("Template1").Copy before:=Worksheets(1)
This command copies the Template1 sheet and places the copy at the beginning of the worksheets list.
Any thoughts on why the method is failing after running smoothly 32 times?
Ed
Run-Time Error '1004'
Copy method of Worksheet class failed
The command that I think is failing is:
Worksheets("Template1").Copy before:=Worksheets(1)
This command copies the Template1 sheet and places the copy at the beginning of the worksheets list.
Any thoughts on why the method is failing after running smoothly 32 times?
Ed