Hi,
Can anyone give me some advise on this?
The project i was working on yesterday was all running fine. I have not made any changes to the code and ran it today and recieve this message.
Excel cannot complete this task with available resources. Choose less data or close other applications.
Basically the code i am running filters data from a main data sheet. It then copies certain data to another sheet. It then copies further data a differnet sheet.
It then creates 2 new workbooks with a copy of each one of these sheets with data on, in each sheet.
Opens Outlook mail, attaches 2 new workbooks, then kills the 2 new workbooks.
I have found it only seems to fail on the 2nd workbook. It copies the data to the sheet, creates a new workbook and then fails. It does not allow me to run through the code to find the problem.
I think it may be because the sheet it is copying has a lot of data validation dropdown boxes and possibly causing it to crash due to too many calculations maybe? The new workbook when it was working was only about 370kb.
Im sure its either the code or too much information to copy.
Any ideas?
Here is the code i am using.
Please Login or Register to view this content.
Bookmarks