Skip to main content

Range.AddCommentThreaded method

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 D4 on worksheet one.

Worksheets(1).Range("D4").AddCommentThreaded "Current Sales"

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>