Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Excel Erroring on Close

I have a large Excel 2000 application (4 to 7 MB, it can vary) that works
fine on most procedures in it. There is one particular procedure that adds a
tempory worksheet and then copies a large range (20 columns x up to 25,000
rows) into the file from another Excel file into it, for some analyzing and
easy access. When the procedure is done, it deletes the new sheet with this
data, and ends normally.

After running this procedure, when you go to close this main Excel file, I
get the "Excel has encountered a problem and needs to close..." box of
death.

If any other procedure has been run, but that one, it closes fine. Seems
like a memory problem. Since I am copying a large range, I am sure to use:

Application.CutCopyMode = False, at the end of the procedure to clear the
clipboard, I believe.

Any other ideas?

Thanks in advance,
Denny


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Excel Erroring on Close

Try copying it in, say, blocks of 5000 rows each instead of all 25000 at once.

On Mon, 21 Feb 2005 19:04:56 -0500, "Denny Behnfeldt"
wrote:

I have a large Excel 2000 application (4 to 7 MB, it can vary) that works
fine on most procedures in it. There is one particular procedure that adds a
tempory worksheet and then copies a large range (20 columns x up to 25,000
rows) into the file from another Excel file into it, for some analyzing and
easy access. When the procedure is done, it deletes the new sheet with this
data, and ends normally.

After running this procedure, when you go to close this main Excel file, I
get the "Excel has encountered a problem and needs to close..." box of
death.

If any other procedure has been run, but that one, it closes fine. Seems
like a memory problem. Since I am copying a large range, I am sure to use:

Application.CutCopyMode = False, at the end of the procedure to clear the
clipboard, I believe.

Any other ideas?

Thanks in advance,
Denny


Reply
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 excel close all files when I just want to close one files hon123456 Excel Discussion (Misc queries) 2 December 8th 10 12:12 PM
Data Validation Not Erroring with List OyBouTJ Excel Worksheet Functions 2 June 4th 08 06:33 AM
why do all excel worksheets/workbooks close when I close one? Penny Excel Discussion (Misc queries) 1 November 29th 06 03:49 AM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
excel - Windows close button (x) should only close active workboo. CoffeeAdict Setting up and Configuration of Excel 3 February 8th 05 04:30 AM


All times are GMT +1. The time now is 03:54 PM.

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

About Us

"It's about Microsoft Excel"