Macro Sheets Only
Equivalent to choosing the Scenarios command from the Tools menu and then choosing the Add button. Defines the specified values as a scenario. A scenario is a set of values to be used as input for a model on your worksheet.
Syntax
SCENARIO.ADD(scen_name, value_array, changing_ref, scen_comment, locked, hidden)
Scen_name is the name of the scenario you want to define.
Value_array is a horizontal array of values you want to use as input for the model on your worksheet.
Changing_ref is a reference to cells you want to define as changing cells for a scenario.
Scen_comment is text specifying a descriptive comment for the scenario defined by scen_name.
Locked is a logical value that corresponds to the Prevent Changes check box in the Add or Edit Scenario dialogs boxes. If TRUE or omitted , prevents users from changing values in a scenario. If FALSE, users are allowed to make changes to the scenario. The locking will not become enabled until the sheet is protected with the Protect Sheet command from the Protection submenu on the Tools menu.
Hidden is a logical value that corresponds to the Hide check box in the Add or Edit Scenario dialog boxes. If TRUE, the scenario will be hidden from view from the users and will not appear in the Scenario Manager dialog box. If FALSE or omitted, the scenario will remain unhidden. The scenario will not become hidden until the sheet is protected with the Protect Sheet command from the Protection submenu on the Tools menu.
Related Function
REPORT.DEFINE Creates a report
SCENARIO.GET Returns the specified information about the scenarios defined on your worksheet
List of Command-Equivalent Functions