PC Review


Reply
Thread Tools Rate Thread

Code corruption problem

 
 
Patrick C. Simonds
Guest
Posts: n/a
 
      2nd Oct 2009
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 With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      2nd Oct 2009
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" <(E-Mail Removed)> wrote in message
news:8A5AA95E-A38B-42A2-81A0-(E-Mail Removed)...
>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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What causes corruption in VBA Code? =?Utf-8?B?QnJlbnQgRQ==?= Microsoft Access 1 7th Jun 2005 11:29 PM
VBA Code Corruption =?Utf-8?B?QnJlbnQgRQ==?= Microsoft Access VBA Modules 2 7th Jun 2005 09:57 PM
Memory corruption - problem with my code? Colleyville Alan Microsoft Excel Discussion 0 22nd Nov 2003 05:12 PM
Re: Code Corruption Problem Dirk Goldgar Microsoft Access VBA Modules 2 8th Jul 2003 07:04 PM
Code Corruption Problem Howard Brody Microsoft Access VBA Modules 0 3rd Jul 2003 02:17 PM


Features
 

Advertising
 

Newsgroups
 


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