so I’m currently optimizing a macro which returns two custom results tables during the course. The first part runs super stable so I always get the first results saved using
saveAs("Results", dirimg + imgName + "_" + rName + "_Filopodia.csv");
In the second part I measure something else and my results table is repopulated with different measures and I can again save it using
The second part however still crashes sometimes for certain shapes of cells. I already found a way to detect the crash and stop the macro using
error() but at that point, the first results have already been saved and I don’t want to only create half of the results.
So is there a way store a custom results tabe in a variable or basically have two results tables so I can just save them after successfully finishing the full macro?