Range.AddCommentThreaded method (Excel)

Adds a new modern threaded comment to the range if no comment already exists.

Syntax

expression.AddCommentThreaded (Text)

expression A variable that represents a Range object.

Parameters

Name Required/Optional Data type Description
Text Required String The comment text.

Return value

CommentThreaded

Example

This example adds a threaded comment to cell E5 on worksheet one.

Worksheets(1).Range("E5").AddCommentThreaded "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.