CB.SelectChart

This call selects or activates the current operating chart. If the specified name is not found, an error is thrown. If a name is not specified — for example, by passing an empty string as the name — and more than one chart of the specified type is found, a chooser dialog appears.

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

Table 163. CB.SelectChart Parameters and Values

Parameter

VBA Data Type

Value

Description

SimChartType

Integer

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

Specifies the type of chart you are selecting — overlay, scatter, sensitivity, or trend charts — according to the named constant and index values listed in the Value column

ChartID

String

The string (ChartID) returned from CB.EnumChart or CB.CreateChart.

Indicates the chart to select