Hi there,
It's very difficult to debug your problem without access to your workbook, but I have seen comments like the following MANY times in this forum! 
Randomly, when it gets to pasteRange.PasteSpecial, it will throw an error that it can't find the range.
If I enter debug it works perfectly.
This problem can be caused by the "pasterange" variable referring to a Defined Name, but not being not fully-qualified - i.e. it does not include a reference to the worksheet. This means that the code will try to find the specified range on whichever worksheet happens to be active when the code is executed, rather than on the worksheet which you want to use.
You should use a fully-qualified reference such as the following:
rather than:
Almost invariably, when you step through the code using the debugger, you select the intended worksheet before you start - hence no error condition occurs.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks