Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2008, 12:25 PM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Range copy Excel crash workaround

Hi, ppl

My first post as a 1st time developer, so bear with me...

I've put together a very basic database. There is a form with a bunch of option boxes where the user can enter data and a set of comboboxes that filters the date column so the user can set a date range. The filtered data, defined as a range, is then copied over to another worksheet and the option box values are counted up. On a third worksheet, the reworked data is used to generate a set of charts.

Okay, simple enough, but here's the thing: any attempt at this point to save and close the workbook results in Excel crashing with the usual Microsoft rubbish about going online to find a solution. Except, and here's the workaround, if I delay saving and closing the workbook by 15 to 20 seconds, it exits normally, so I'm guessing that there is a thread or process that needs time to run its course.

Oddly enough, everything points to the range copy function described above as being the guilty party. If I step through the procedure or do it manually, everything works fine, it is only when the range copy is performed by VBA that everything goes wrong.

If anyone can throw some light on what's going on, I would be very grateful. Where this sort of thing is concerned, I hate mysteries.

In conclusion, I'm running Excel 2003, Office 2003 Service Pack 2, Vista HP on 2.4G Pentium Dual-Core with 2G of RAM.

Yours sincerely

Trevor

 
Old March 22nd, 2008, 12:30 AM
fyz fyz is offline
Registered User
 
Join Date: Mar 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Does this problem lead your file damaged or something? If so, maybe you can try a popular Excel file recovery tool called Advanced Excel Repair to repair your Excel file. It is a powerful tool to repair corrupt or damaged Excel files.

Detailed information about Advanced Excel Repair can be found at http://www.datanumen.com/aer/

And you can also download a free demo version at http://www.datanumen.com/aer/aer.exe

Hope this will help.

Alan


fyz





Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Paste Dynamic Range jgrant Excel VBA 1 February 5th, 2008 10:13 PM
Importing a Range from Excel JezLisle Access VBA 0 July 27th, 2007 02:54 AM
Copy a worksheet range to a new workbook cej2583 Excel VBA 2 March 14th, 2006 11:55 PM
Cr8 & Stored procedure ..Crash ..Crash swissaKM Crystal Reports 0 January 2nd, 2005 06:02 AM
Looping thro' / Copy from Range iwat03 Excel VBA 1 July 3rd, 2003 11:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.