Thread
:
copy method of worksheet class failed
View Single Post
#
2
Posted to microsoft.public.excel.programming
Ron de Bruin
external usenet poster
Posts: 11,123
copy method of worksheet class failed
Hi Dennis
See
Copying Worksheet Programmatically Causes Run-Time Error 1004
http://support.microsoft.com/default...84&Product=xlw
--
Regards Ron de Bruin
http://www.rondebruin.nl
"Dennis Mak" <Dennis
wrote in message ...
I have used a for loop to generate new worksheets by the following statments:
For i = 1 To InputCaseNum
Worksheets(EnvTemplate(i)).Copy after:=Worksheets
Next i
I have got the following error message if the number of new worksheets
generated exceeds 30:
Run-tim error '1004':
Copy method of Workshet class failed
How can I resolve this problem?
Reply With Quote
Ron de Bruin
View Public Profile
Find all posts by Ron de Bruin