CB.OpenChart

This call opens a chart of the specified type and chart ID. The chart ID is optional. If no charts of the specified type exist, one is created and is selected. If the chart ID is not specified, the currently selected chart is opened. If the specified chart is not found, a chooser dialog appears. No error is returned.

Currently, this call only works on current and not restored results.

Table 150. CB.OpenChart Parameters with Values

Parameter

VBA Data Type

Value

Description

SimChartType

Integer

cbChtOverlay = 1, cbChtScatter = 2, cbChtSensitiv = 3, cbChtTrend = 4

Specifies the type of chart you are opening — overlay, scatter, sensitivity, or trend — using the named constant and index values listed in the Value column

ChartID (Optional)

String

"Chart ID"

The chart ID returned by CB.EnumChart (Table 60) entered directly or using CB.EnumChart