Comments.Add method (PowerPoint)

Returns a Comment object that represents a new comment added to a slide.

Important

This method is now hidden. It will continue to work in existing places but cannot be added to new places in code. For modern comments, this method can only attribute comments to the signed-in user, not anyone passed in through the “author” field. To attribute modern comments to other authors, please update your calls to the Add2. Add will continue to work as expected for legacy comments. For more infomation about modern comments, see Modern comments in PowerPoint.

Syntax

expression.Add (Left, Top, Author, AuthorInitials, Text)

expression A variable that represents a Comments object.

Parameters

Name Required/Optional Data type Description
Left Required Single The position, measured in points, of the left edge of the comment, relative to the left edge of the presentation.
Top Required Single The position, measured in points, of the top edge of the comment, relative to the top edge of the presentation.
Author Required String The author of the comment.
AuthorInitials Required String The author's initials.
Text Required String The comment's text.

Return value

Comment

See also

Comments Object

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.