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
- Range
Type: Microsoft.Office.Interop.Word.Range
Required Range object. The range to have a comment added to it.
- Text
Type: System.Object%
Optional Object. The text of the comment.
Return Value
Type: Microsoft.Office.Interop.Word.Comment