Excel always crashes on second running of add-in

philltee

New Member
Joined
Mar 9, 2015
Messages
2
Hi,

I have a weird issue with a vba macro I am running. the macro opens up another large workbook which performs calculations using an addin called proj_result. This is actually a Prophet add-in (if anyone on here uses Prophet this may be something you can solve).

Basically the workbook calculates fine for the first set of inputs, but once it is finished and I try to save this data then input a new set of variables, the add-in runs so slowly that excel just freezes.

I have tried closing the workbook after the first run, then re-opening the original template, but it still has the same issue of hanging. It seems there is something cached which breaks excel. The only way to get the template to run again is to close excel completely via task manager.

Does anyone know how I can either fully kill the workbook after the first run, so it will not impact the second run when I re-open the template? Or any other suggestions to get around the problem??
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
You could try running the macro while watching the task manager. That way you could detect any memory leaks, in case theres is faulty programming in that add-in. other than that, trying to fix an add-in is going to be difficult.

You could try to run your macro step by step (F8 mode), until you get to the exact point where it crashes. You might get some insight that way.

Good luck
 
Upvote 0
Thanks for the reply Chris. When I F8 through the code, it doesn't error it just runs very slowly. There must be something being cached by the excel add-in...

Any idea how big can kill the workbook completely once I have run it the first time and saved it?
 
Upvote 0
well, that depends on your computer really. But it should never get to that point anyway.

but there must be something which makes it start to go slow. a loop or something?
I'm guessing theres something wrong with your add-in...
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,927
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top