PC Review


Reply
Thread Tools Rate Thread

Code Execution Inexplicably Stops & Excel Soon Crashes

 
 
=Ray=
Guest
Posts: n/a
 
      12th Aug 2009
Excel 2007 on XP

I have two independent workbooks with a userform on each. One was originally
developed using Excel 2003, the other using 2007.

All of a sudden (since about a week ago or so), both of the userforms have
been giving me trouble. The old one (originally developed on 2003) has not
been modified, code-wise, but still behaves the same way.

What happens is that when the form is first shown, everything seems normal,
until a form button is clicked that executes sheet-modifying code (not
completely sure that's the right distinction, but I have a hunch it is). Then
it will execute a line or so of the code and abruptly stop execution and the
form disappears. Even when in break mode, when I press F8 to advance, the
same thing happens! Always on the same line, specific to the form.

If I reshow the userform (done via a worksheet button), it displays without
initialization, and the close box doesn't work (nor do the buttons, but
controls that enable/disable other controls do work!). If I do Alt-Esc or
click the stop button fromthe VBA editor, I can sometimes get out of it, but
if I try to reshow the form again, it says "Automation error: The object
invoked has disconnected from its clients" and proceeds to crash/restart
Excel.

Has anyone experienced anything like this before? Any solutions? The thing
that gets me is that it started happening all of a sudden, and is very
consistent, yet at least for one workbook, the code was unaltered!

Another strange thing that I was having problems with when I first started
creating the Excel 2007 userform, was that when I attempted to show it, it
would flash it, then hide immediately. Somehow I got past that, though. I'm
kind of frustrated with this.

Ray
 
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
Help - VBA Code execution in Excel Luis Microsoft Excel New Users 2 10th Sep 2007 03:14 AM
Code Execution Just Stops Adrian Enders Microsoft VB .NET 5 5th Apr 2005 06:45 AM
RE: Excel crashes during a module execution =?Utf-8?B?UmVuYXRv?= Microsoft Excel Programming 0 3rd Sep 2004 02:17 PM
My code inexplicably executes while in the IDE Tom Microsoft VB .NET 2 9th Jul 2004 08:40 PM
Excel VBA Code Execution Excel XP Vs Excel Office 2000 John Flynn Microsoft Excel Programming 6 24th Aug 2003 04:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:00 PM.