copy method of worksheet class failed

G

Guest

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?
 

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

Top