Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 897
Default Excel has encountered a problem and needs...

When do you get the error -- when you are running the code or just
sitting in the workbook? If it happens when you are running the code,
try stepping through the code and posting the section that caused the
error.

Thx,
JP


On Jan 20, 12:30*am, Greg Wilson
wrote:
I have a project with a relatively large amount of code. I now often get the
message: "Excel has encountered a problem and needs to close. We are sorry
for the inconvenience." I have used Rob Bovey's Code Cleaner several times to
no avail. I have no OLE objects in the project. It doesn't happen
often/reliably enough to try process of elimination, selectively commenting
out code and testing if it still happens. So I cannot source the problem.

I think it only happens after working on the code, and if I get it to go
away and don't do any more work on it, it may be OK. At least once, I made
the problem go away by just opening a code module and closing it without
making a single change. Weird?

Moday is the grand debut !!!

Hoping someone can provide a list of the usual suspects or has some good
suggestioins.

Much appreciative.

Greg *


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default Excel has encountered a problem and needs...

Thanks JP for responding. It happens on opening the wb. The Debug toolbar's
Compile VBAProject finds no syntax errors in the project. The Workbook_Open
event only does a few things, all of which are correct. The problem only
happens occasionally. This makes me think it's due to some form of
corruption. See my post to Jim.

Thanks again.

Greg

"JP" wrote:

When do you get the error -- when you are running the code or just
sitting in the workbook? If it happens when you are running the code,
try stepping through the code and posting the section that caused the
error.

Thx,
JP


On Jan 20, 12:30 am, Greg Wilson
wrote:
I have a project with a relatively large amount of code. I now often get the
message: "Excel has encountered a problem and needs to close. We are sorry
for the inconvenience." I have used Rob Bovey's Code Cleaner several times to
no avail. I have no OLE objects in the project. It doesn't happen
often/reliably enough to try process of elimination, selectively commenting
out code and testing if it still happens. So I cannot source the problem.

I think it only happens after working on the code, and if I get it to go
away and don't do any more work on it, it may be OK. At least once, I made
the problem go away by just opening a code module and closing it without
making a single change. Weird?

Moday is the grand debut !!!

Hoping someone can provide a list of the usual suspects or has some good
suggestioins.

Much appreciative.

Greg



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
Microsoft Excel has encountered a problem suehoege Excel Discussion (Misc queries) 1 December 30th 09 03:06 PM
Microsoft Excel has encountered a problem suehoege[_2_] New Users to Excel 0 December 30th 09 10:06 AM
Microsoft Excel has encountered a problem... Frank Excel Discussion (Misc queries) 4 April 27th 09 04:13 PM
Microsoft Excel for Windows has encountered a problem.... DS Excel Programming 1 October 26th 06 04:25 PM
Microsoft Excel has encountered a problem and needs to close. HELP! LAF Excel Discussion (Misc queries) 2 April 3rd 06 01:57 PM


All times are GMT +1. The time now is 08:26 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"