Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 343
Default Code corruption problem

I have a problem that is driving me up the wall.

I have a workbook with an extensive set of VBA code. I can save the workbook
a hundred times and rerun my code with no problems but if it saves upon
closing Excel, the next time you open it and run the code it crashes Excel.
I have tried everything I can think of to fix this but Excel provides no
information on what is crashing the program.

Now I am wondering if I can suppress the save on exit prompt. No change will
be made to the workbook without going through a UserForm so I can run a save
routine when the UserForm is dismissed.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Code corruption problem

Don't know if it is the same problem or not, but I once had a file with a
bunch of numbers that calculated everytime the file opened. I had a bunch
of formulas that did averages, max, min and several other things for
statistical data. Excel decided one day that it did not want that file to
open anymore and put it in quarantine. I still have not figured out what
the criteria was that Excel used, but it refused to let me use that file
anymore. There must be something built into the system that counts the
number of times a file barfs for the same reason and then flags it, but I do
not know that for sure.


"Patrick C. Simonds" wrote in message
...
I have a problem that is driving me up the wall.

I have a workbook with an extensive set of VBA code. I can save the
workbook a hundred times and rerun my code with no problems but if it
saves upon closing Excel, the next time you open it and run the code it
crashes Excel. I have tried everything I can think of to fix this but
Excel provides no information on what is crashing the program.

Now I am wondering if I can suppress the save on exit prompt. No change
will be made to the workbook without going through a UserForm so I can run
a save routine when the UserForm is dismissed.



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
About Corruption Aqeel Ahmad Excel Discussion (Misc queries) 1 October 15th 09 05:19 PM
VBA corruption HSalim[MVP] Excel Programming 1 November 1st 08 04:10 PM
excel corruption problem while copying tabs [email protected] Excel Discussion (Misc queries) 0 August 6th 07 11:27 PM
Memory corruption? Alex[_13_] Excel Programming 0 December 12th 03 07:59 PM
Corruption? Mike Preston Excel Programming 2 September 2nd 03 04:28 PM


All times are GMT +1. The time now is 02:41 AM.

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"