Share via


_QueryTable.CommandText Property

Returns or sets the command string for the specified data source. Read/write Object.

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

Syntax

'Declaration
Property CommandText As Object
    Get
    Set
'Usage
Dim instance As _QueryTable
Dim value As Object

value = instance.CommandText

instance.CommandText = value
Object CommandText { get; set; }

Property Value

Type: System.Object

Remarks

For OLE DB sources, the CommandType property describes the value of the CommandText property.

See Also

Reference

_QueryTable Interface

_QueryTable Members

Microsoft.Office.Interop.Excel Namespace