Sdílet prostřednictvím


Scenario.Comment Property (Excel)

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.

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

See Also

Concepts

Scenario Object

Scenario Object Members