LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Copy Method of Sheets Class Failed - after many copies

Maybe before you run the second report you can close BookA and open it
after a few seconds

Sub closeopen()
Application.OnTime Now + TimeValue("00:00:05"), "yoursub"
ActiveWorkbook.Close False ' not save it
End Sub

Sub yoursub()
Workbooks.Open "C:\BookA.xls"
End Sub

I not test it but try it



--
Regards Ron de Bruin
http://www.rondebruin.nl


"JzP" wrote in message ups.com...
Hi again Ron.
Having done further work I may be able to cut down on the copies within
my workbook by using a template - as suggested at the end of the MSKB
article you kindly directed me to.
I'm still concerned that running several reports one after another
without closing excel will cause a problem so if you have any ideas I'd
appreciate it.
Thanks very much for taking the time to assist me.

John Pomfret



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why am I getting R/T 1004 - Copy method of Rng class failed? Jim May Excel Discussion (Misc queries) 2 April 21st 08 05:14 PM
Copy Method of WorkSheet Class Failed! Donna[_7_] Excel Programming 9 February 11th 05 08:47 PM
Copy method of chart class failed St. Nick Excel Programming 1 July 16th 04 03:21 AM
RE :Copy method of Worksheet class failed? Steph[_3_] Excel Programming 0 April 2nd 04 11:04 PM
Copy method of Worksheet class failed? Steph[_3_] Excel Programming 1 April 2nd 04 09:52 PM


All times are GMT +1. The time now is 10:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"