I am just starting out with VBA, so I don't know a lot about it. I've made an Monte Carlo Simulation with VBA (just a for-loop to compute a formula) and now I want to get every value from that for-loop and print it out under each other in the excel worksheet.
I thought about storing every value after the for-loop in an array and printing it out, but I got really stuck in the process. Is an array the best method for this or can it be done easier?
My code is something like this:
for i = 1 to numberofclients
for j = 1 to numberofsimulations
-->my formula to compute the value I want to print
Next j
---> It would be ideal that after every set of simulations the value could be printed under each other
Next i
Thank you very much guys! If you need the real source I can always paste it here.