I have a large workbook (6kb) with a large number of UDFs and working on quite a large amount of data. I developed it on a smaller copy with only 50 rows and have done a scale up (4000 rows) after each major feature to check stability. The problem is, right now it seems to be crashing where it worked on the small version.
The crash is a hard crash - Excel immediately closes without any dialogue or prompt: it just vanishes. There IS a big delay, lots of processing, a burning CPU and not responding period. I have done sheet by sheet recalculation and have isolated it down to one sheet - the one I most recently changed. the sheet has 3-4 array formulae (mainly just column vectors) and one more complex VBA UDF. The UDF does complete - it gets to the last line where I assign the output. The crash is after/on return from the function.
The UDF is called as an array formula returning a 3200x1 array of results. I've done this all over this workbook without issues and it has good performance normally. I've also disabled automatic calculation (necessary for this size), disabled recalculate on save so I can save THEN calculate (to resolve some issues with poor dependency tracing of UDFs by excel). It is tricky at this point because it seems the point of crash is after the end of the code I developed.
Where do I start on debugging this? Has anyone seen similar issues before?
If I can get it working I'm tempted to try a control-alt-shift-F9 to force a full recalculation - although that will be my PC locked up for half a day or so.
The crash is a hard crash - Excel immediately closes without any dialogue or prompt: it just vanishes. There IS a big delay, lots of processing, a burning CPU and not responding period. I have done sheet by sheet recalculation and have isolated it down to one sheet - the one I most recently changed. the sheet has 3-4 array formulae (mainly just column vectors) and one more complex VBA UDF. The UDF does complete - it gets to the last line where I assign the output. The crash is after/on return from the function.
The UDF is called as an array formula returning a 3200x1 array of results. I've done this all over this workbook without issues and it has good performance normally. I've also disabled automatic calculation (necessary for this size), disabled recalculate on save so I can save THEN calculate (to resolve some issues with poor dependency tracing of UDFs by excel). It is tricky at this point because it seems the point of crash is after the end of the code I developed.
Where do I start on debugging this? Has anyone seen similar issues before?
If I can get it working I'm tempted to try a control-alt-shift-F9 to force a full recalculation - although that will be my PC locked up for half a day or so.