The reason is I will run the simulation with third party software, and the response of Yes or No will depend on the average of certain outputs of previous iterations.

The VBA code will calculate the average of the outputs, and make a Yes or No selection in the msgbox.

Hope that clarify.