CB.CheckDataND

Like CB.CheckData, this subroutine scans Crystal Ball data on open worksheets, checking the validity of all Crystal Ball data objects, including assumptions, decision variables, forecasts, and correlations. Then, it initializes internal variables. However, if an error occurs, no dialogs appear. Instead, an error is returned by CB.MacroResultDetail (CB.MacroResultDetail).

Call CB.CheckDataND or CB.CheckData each time you start a new enumeration, use a CB.Get... call that relies on cell references that might have changed, and each time you delete or add data. Use CB.CheckDataND or CB.CheckData before using calls that extract data or create reports.