Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a scenario on a worksheet. A scenario is a group of input values (called
changing cells) that’s named and saved.
public interface class Scenario
[System.Runtime.InteropServices.Guid("00020897-0000-0000-C000-000000000046")] [System.Runtime.InteropServices.InterfaceType(2)] public interface Scenario
Public Interface Scenario
The Scenario object is a member of the Scenarios collection. The Scenarios collection contains all the defined scenarios for a worksheet.
index is the scenario name or index number, to return a single Scenario object.
Returns an Application object that represents the Microsoft Excel application.
Returns a Range object that represents the changing cells for a scenario.
Returns or sets the comment associated with the scenario. The comment text cannot exceed 255 characters.
Returns a 32-bit integer that indicates the application in which this object was created.
True if the scenario is hidden. The default value is False.
Returns the index number of the object within the collection of similar objects.
True if the object is locked; False if the object can be modified when the sheet is protected.
Returns or sets the name of the object.
Returns the parent object for the specified object.
Returns an array that contains the current values of the changing cells for the scenario.
Changes the scenario to have a new set of changing cells and (optionally) scenario values.
Deletes the object.
Shows the scenario by inserting its values on the worksheet. The affected cells are the changing cells of the scenario.