Excel Limit on Worksheet Copy?

G

George

I am writing a VBA program in Access 2003 that does five tasks:
1. open an Excel workbook
2. copy a worksheet to a temporary worksheet
3. copy data from a recordset to the temporary worksheet
4. rename the temporary worksheet
5. save and close the workbook

Everything works fine, except in situations where more than 15 worksheets
need to be copied. At that point the VBA program dies. Does anyone have any
suggestions?

Thanks!
 
K

Klatuu

At that point the VBA program dies.

Make funeral arrangements?

An error number or description of the problem would certainly be helpful.
Also, posting the code couldn't hurt. My first thought is you may be blowing
memory, but without seeing your code or knowing what error you get, I can't
tell.
 

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