This function returns the unique name of the next chart of the specified type. The string returned is the full path of the chart. You can then use other window and chart handling calls to manage the enumerated charts.
Table 60. CB.EnumChart Returned Data Type
The path and name of the next chart of that type, ChartID, in the format: "|Current Results|Sensitivity Charts|Charts.xls|Sensitivity Chart 1" |
Note: | For best results, call CB.CheckData once at the beginning of an enumeration to reset the sequence of charts. You should also call CB.CheckData each time you add or delete data. Use CB.CheckData or CB.CheckDataND with CB.MacroResultDetail to check for errors. For more information, see the descriptions of those calls. |
This call operates only on current results and not restored results.
If the returned string is empty, either all charts of that type have been enumerated or there were no charts of that type to enumerate.
You can only call this function from a subroutine or another function. You cannot call this function from a worksheet.
CB.EnumChart has only one parameter, SimChartType, which specfies the type of chart to enumerate.