Hello,
Let me address why the code in the attached workbook doesn't compile:
(1) There are two methods named Sim_Risk, one needs to be re-named.
(2) You're programming @RISK with the old version 4-style macro language, including commands like RiskGetSettings or RiskSimulate. These are supported in version 5, but for them to work you need to add reference to the Risk.xla add-in (listed as "AtRiskXL" when you go to Tools>References in the VBA editor).
I'd recommend using the new object-oriented macro language introduced in @RISK version 5. That seems like a better idea from the point of view of maintaining the code and obtaining technical support in the future.
Mirek