LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
jon jon is offline
external usenet poster
 
Posts: 6
Default Excel 97 crashes when button is clicked

I had an Excel WB that was working fine, but I did something, and now it
dies horribly and consistently. It is, in fact, code that I intend to use
as an AddIn, but the problems described below occur when developing the AI
when it still is an XLS, not an XLA.

If I click on a button (a Shape, actually), Excel croaks with some kind of
GPF. This happens when I click any of a variety of such buttons (that is,
the problem appears to occur no matter which event is triggered). If I try
to use the VBA debugger to see which statement causes the problem, by
inserting a breakpoint on the first statement of the event handler, Excel
dies anyway, before the VBA debugger can get control.

I deduce, from this, that something is going wrong during some kind of
source code scan that is occurring before the event procedure is run. I've
looked for problems with the source code, like ill-formed subroutines or
functions, but no joy. No complaints from the VBA IDE. I don't know if
there is any way to have VBA scan the source code.

I have also seen another version of this WB that would not open in Excel 97
at all: it always croaked in the same manner as above. Such WBs can be
opened using Excel 2000, all of the code can be exported, and the resulting
new WB opens fine in Excel 97, but dies when buttons are clicked, as above.

I've looked at the MS web site to see if I should download some
patches/updates, but the MS site is far less than helpful. There are many
web pages that describe SP1, but no links to download that SP. You cannot
download SP2 unless you have SP1, but no way to download SP1. Catch 22.
Thanks MS. I found a table that implied that there may be no way to apply
ANY patches to the version of Excel 97 that I have, because it is too old
(it appears to be the original build). Thanks, again, MS.

Anyone seen this before? Any ideas what I can do to figure out what the
offending statement is, so that I can continue development?

Thanks

Jon

jbondy at sover dot net


 
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
Excel 2007 Crashes Whenever Add-In Button is Clicked Richard S Setting up and Configuration of Excel 0 August 28th 07 12:50 AM
CreateEventProc for OLE button crashes Excel Jag Man Excel Programming 3 February 18th 04 11:25 PM
Excel crashes with createEventProc for a button Dave Peterson[_3_] Excel Programming 0 August 25th 03 11:31 PM
Excel crashes with createEventProc for a button Tom Ogilvy Excel Programming 4 August 25th 03 08:30 PM
Excel crashes with createEventProc for a button tina salgia Excel Programming 0 August 25th 03 06:17 PM


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

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

About Us

"It's about Microsoft Excel"