Comment.Text Method
Sets comment text.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Text ( _
Text As Object, _
Start As Object, _
Overwrite As Object _
) As String
'Usage
Dim instance As Comment
Dim Text As Object
Dim Start As Object
Dim Overwrite As Object
Dim returnValue As String
returnValue = instance.Text(Text, Start, _
Overwrite)
string Text(
Object Text,
Object Start,
Object Overwrite
)
Parameters
Text
Type: System.ObjectOptional Object. The text to be added.
Start
Type: System.ObjectOptional Object. The character number where the added text will be placed. If this argument is omitted, any existing text in the comment is deleted.
Overwrite
Type: System.ObjectOptional Object. True to overwrite the existing text. The default value is False (text is inserted).
Return Value
Type: System.String