Creating a FOR loop including recalculate and export?
Hi folks!
I'm having a following problem with finding an effective way to export calculation results from Mathcad:
There's two things I would like to do. Firstly, I'd want to create mechanism that calculates the worksheet several times in a row and exports results from file output box to a new file (or new row) in between the calculation rounds to save the results from each round. My calculations include random variables so the results vary between rounds even without changing the start values. Manually this is easy to do by ctrl+F9 (calculate worksheet), and then opening the excel file attached to file output box and copying the results into a new row of another excel table (or save as to save into individual file). Also this would be possible to do with a for loop in Mcad for simple cases. The problem is that my calculations are too complicated to be put in a default for loop, so I guess I have to create my own with VB.
When the for loop works for the whole calculation, the second thing would be to change some variables between rounds to see the effect of variation in results. I'm just a rookie in programming but the idea is so basic I'm optimistic for finding the solution here. Basicly what I need is following:
For i = 1...10:
Variable1 := i
Calculate Worksheet
Export to results.xls row i (or results_i.xls)
I hope you got the point and can help me with this since I don't seem to solve this by myself. One calculation round takes about 5 mins so I would rather run multiple rounds in a row than manually save the results every 5 mins for about 100 rounds.

