Hi All,
Hoping you can help. I have a piece of code which I found on a forum years ago and have been using successfully in a number of projects. The code basically gets you to select a workbook, opens it, and copies the worksheets to the matching sheets in the original workbook. Eg, opens a workbook, copies contents of worksheet 'ABCD' from the new workbook to worksheet 'ABCD' in the original workbook. It works fine when opening workbooks in 2003 format. When I run the code and open a 2007 workbook, I get an Excel error with a big red cross saying:
* Excel cannot complete this task with available resources. Choose less data or close other applications.
Here is the code:
I'm gathering it has something to do with the greater number of lines in the newer version so I may be trying to copy hundreds of thousands of lines instead of tens of thousands as I did in 2003.
I'd appreciate any assistance in figuring out why this code no longer works with 2007/2010 Excel.
Many thanks
Trav
Bookmarks