Range.AddComment Method
Adds a comment to the range.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function AddComment ( _
Text As Object _
) As Comment
'Usage
Dim instance As Range
Dim Text As Object
Dim returnValue As Comment
returnValue = instance.AddComment(Text)
Comment AddComment(
Object Text
)
Parameters
Text
Type: System.ObjectOptional Object. The comment text.
Return Value
Type: Microsoft.Office.Interop.Excel.Comment