IQueryTables.Add Method
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Add ( _
Connection As Object, _
Destination As Range, _
Sql As Object _
) As QueryTable
'Usage
Dim instance As IQueryTables
Dim Connection As Object
Dim Destination As Range
Dim Sql As Object
Dim returnValue As QueryTable
returnValue = instance.Add(Connection, _
Destination, Sql)
QueryTable Add(
Object Connection,
Range Destination,
Object Sql
)
Parameters
- Connection
Type: System.Object
- Destination
Type: Microsoft.Office.Interop.Excel.Range
- Sql
Type: System.Object
Return Value
Type: Microsoft.Office.Interop.Excel.QueryTable