Share via


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.Object

    Optional Object. The text to be added.

  • Start
    Type: System.Object

    Optional 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.Object

    Optional Object. True to overwrite the existing text. The default value is False (text is inserted).

Return Value

Type: System.String

See Also

Reference

Comment Interface

Comment Members

Microsoft.Office.Interop.Excel Namespace