LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default How to proceed after crash with message: Microsoft Excel has stopped working

My macro enabled spreadsheet has started randomly crashing. The only diagnostics is the message Microsoft Excel has stopped working. I am running Excel 2010 under Windows 7.

I think I have isolated the problem to a vba subroutine (InitializeReport) that populates a Type data structure (Public Type TableMetadata) that is defined in the Declarations section of Module1. In the same section I set up a public variable (Public lref as TableMetadata).

My test subroutine displays MsgBox popups before and after calling InitializeReport. If the crash occurs, it is between the two popups. However, if I run in Debug mode (just a few steps) the problem never occurs and in fact may go away for a while.

Obviously, something is not being initialized correctly. The code in InitializeReport looks very innocuous.

My main frustration is that I have no tool to get further information on the problem, since everything works fine in Debug mode, and also the spreadsheet will often work for periods with no occurrence.

Would appreciate if anybody has a suggestion on a strategy to get more info on the problem. Can't understand why Excel cannot produce a dump or some information on what went wrong.

I am even prepared to purchase Excel 2014 to see if the problem will go away.

Thank you
 
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
microsoft excel has stopped working message giving by program [email protected] Excel Discussion (Misc queries) 0 January 11th 14 05:18 AM
Microsoft office excel 2003 has stopped working Veeshal Excel Discussion (Misc queries) 3 September 24th 09 07:30 PM
Microsoft Office Excel has stopped working KC Excel Discussion (Misc queries) 0 August 29th 08 05:37 AM
microsoft office excel has stopped working ahmed taha Excel Discussion (Misc queries) 0 May 19th 08 12:32 PM
Displaying a message in a message box without requiring user to click anything to proceed Android[_2_] Excel Programming 2 June 25th 04 06:44 PM


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

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"