Parameters
- name
- The scenario name.
- changingCells
- A Range object that refers to the changing cells for the scenario.
- values
- A list that contains the scenario values for the cells in ChangingCells. If this argument is omitted, the scenario values are assumed to be the current values in the cells in ChangingCells.
- comment
- A string that specifies comment text for the scenario. If this argument is omitted, the author's name(Document Solutions for Excel) and date are automatically added as the comment text.
- locked
- True to lock the scenario to prevent changes. The default value is True.
- hidden
- True to hide the scenario. The default value is False.
Return Value
Returns the new IScenario object.