CB.RestoreResultsND

This subroutine automatically restores simulation results from the file specified by FileName. See CB.RestoreResults for more information about what is restored.

To run this subroutine, you must have a saved .cbr file, or CB.MacroResult returns cbErrRestoreResult.

You can restore any number of results files at one time (but they must be restored one at a time). You do not need to reset the current simulation before you run this subroutine. You can restore results while a simulation is running, completed, or stopped.

If the file could not be read or is not a Crystal Ball results file, CB.MacroResult returns cbErrRestoreResult.

CB.RestoreResultsND is similar to CB.RestoreRunND, available in Crystal Ball 2000.5 (5.5). However, CB.RestoreRun and CB.RestoreRunND restored an entire simulation (saved with CB.SaveRun or CB.SaveRunND), not just the results. The existing simulation had to be reset before the saved simulation could be loaded and only one simulation could be restored at a time.

Table 151. CB.RestoreResultsND Parameters

Parameter

VBA Data Type

Value

Description

FileName

String

A path surrounded by quotes (""), such as "C:\temp\sheet2.cbr"

Points to the saved results file to restore

See the Oracle Crystal Ball User's Guide for more information on saving simulation results.