This example resets the Crystal Ball simulation, selects a target forecast in cell A1, specifies the multisimulation method, specifies analysis of custom percentiles (included in the range F17:H17), specifies 100 bootstrap samples with 1000 trials per sample, indicates that only the target forecast will display, and then runs the Bootstrap tool.
CB.ResetND ' Select target forecast [A1].Select '<- A1 must contain a forecast CB.BootstrapND cbBtsChooseTarget ' Select multisimulation method CB.BootstrapND cbBtsMethod, cbBtsMethodMultiSim ' Select what to analyze -- percentiles, in this case CB.BootstrapND cbBtsAnalyze, cbBtsAnalyzePercent ' Select custom percentiles in the specified cell range CB.BootstrapND cbBtsPercent, cbBtsPercentCustom, "F17:H17" ' Set up sampling options; 100 samples with 1000 trials per sample CB.BootstrapND cbBtsSample, cbBtsNumberSamples, 100 CB.BootstrapND cbBtsSample, cbBtsTrialsPerSample, 1000 ' Set display settings to show only the target forecast CB.BootstrapND cbBtsForeOption, cbBtsShowTargetFore ' Run Bootstrap CB.BootstrapND cbBtsRun