Share via


Scenario.Comment Property

Excel Developer Reference

Returns or sets a String value that represents the comment associated with the scenario.

Syntax

expression.Comment

expression   A variable that represents a Scenario object.

Remarks

The comment text cannot exceed 255 characters.

Example

This example sets the comment for scenario one on Sheet1.

Visual Basic for Applications
  Worksheets("Sheet1").Scenarios(1).Comment = _
    "Worst case July 1993 sales"

See Also