Share via


Comments.Add Method

Returns a Comment object that represents a comment added to a range.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    Range As Range, _
    ByRef Text As Object _
) As Comment
'Usage
Dim instance As Comments
Dim Range As Range
Dim Text As Object
Dim returnValue As Comment

returnValue = instance.Add(Range, Text)
Comment Add(
    Range Range,
    ref Object Text
)

Parameters

  • Text
    Type: System.Object%
    Optional Object. The text of the comment.

Return Value

Type: Microsoft.Office.Interop.Word.Comment

See Also

Reference

Comments Interface

Comments Members

Microsoft.Office.Interop.Word Namespace