Share via


Worksheet.Scenarios(Object) Method

Definition

Gets an object that represents either a single scenario (a Scenario object) or a collection of scenarios (a Scenarios object) on the worksheet.

public object Scenarios (object Index);
abstract member Scenarios : obj -> obj
Public Function Scenarios (Optional Index As Object) As Object

Parameters

Index
Object

The name or number of the scenario. Use an array to specify more than one scenario.

Returns

An object that represents either a single scenario (a Scenario object) or a collection of scenarios (a Scenarios object) on the worksheet.

Applies to