Pastaba.
Prieigai prie šio puslapio reikalingas įgaliojimas. Galite bandyti prisijungti arba pakeisti katalogus.
Prieigai prie šio puslapio reikalingas įgaliojimas. Galite bandyti pakeisti katalogus.
Adds a comment to the range.
Syntax
expression.AddComment (Text)
expression A variable that represents a Range object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Text | Optional | Variant | The comment text. |
Return value
Comment
Example
This example adds a comment to cell E5 on worksheet one.
Worksheets(1).Range("E5").AddComment "Current Sales"
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.