starl
Administrator
- Joined
- Aug 16, 2002
- Messages
- 6,091
- Office Version
- 365
- Platform
- Windows
I've got a project (client confidential, cannot share) that, after the code runs, will eventually crash (eventually means less than 5 minutes or even 10 minutes later, it just sitting there doing nothing).
I was in the VBE once before a crash, but I wasn't able to do anything (VBE was 'locked up') when I noticed it said it was running. So I hit the Pause button - and was able to resume work in the VBE. So I tried to figure out what might be running (press Run, do a manual break to try and get a line of code to light up) - but nothing worked. Note that this is not always the case. Most of the time, I can go into the VBE and edit, but it will still crash.
Anyone have experience with such a thing or have ideas to help me track down the culprit? My code is running to completion, including the clearing of various objects/variables. I've even taken out bits of code to trace a specific bit - but with the crashing being random, I haven't traced anything. And it's not my system - the client has the issue too.
In case what the project does might important:
Program opens two other workbooks and puts their data in memory.
Loop through the data in memory, logic comparisons, generating 2 more arrays of results
Results are placed in corresponding workbooks. One has conditional formatting added to it, the other has data in memory looped, and cells in the workbook Color Filled.
Any errors are placed in a listobject in the original workbook.
I just let Excel sit 5 minutes or so, after running the program. I thought I had figured it out (rebuilt a listobject) - but nope, Excel crashed and re-opened.
Update: I thought the issue might be the Conditional Formatting, so took it out of the code. Still crashed, eventually.
I was in the VBE once before a crash, but I wasn't able to do anything (VBE was 'locked up') when I noticed it said it was running. So I hit the Pause button - and was able to resume work in the VBE. So I tried to figure out what might be running (press Run, do a manual break to try and get a line of code to light up) - but nothing worked. Note that this is not always the case. Most of the time, I can go into the VBE and edit, but it will still crash.
Anyone have experience with such a thing or have ideas to help me track down the culprit? My code is running to completion, including the clearing of various objects/variables. I've even taken out bits of code to trace a specific bit - but with the crashing being random, I haven't traced anything. And it's not my system - the client has the issue too.
In case what the project does might important:
Program opens two other workbooks and puts their data in memory.
Loop through the data in memory, logic comparisons, generating 2 more arrays of results
Results are placed in corresponding workbooks. One has conditional formatting added to it, the other has data in memory looped, and cells in the workbook Color Filled.
Any errors are placed in a listobject in the original workbook.
I just let Excel sit 5 minutes or so, after running the program. I thought I had figured it out (rebuilt a listobject) - but nope, Excel crashed and re-opened.
Update: I thought the issue might be the Conditional Formatting, so took it out of the code. Still crashed, eventually.