ODBCConnection.SourceData property (Excel)
Returns the data source for the ODBC connection, as shown in the table. Read/write Variant.
Syntax
expression.SourceData
expression A variable that represents an ODBCConnection object.
Remarks
Data source | Return value |
---|---|
Microsoft Excel list or database | The cell reference, as text. |
External data source | An array. Each row consists of an SQL connection string with the remaining elements as the query string, broken down into 255-character segments. |
Multiple consolidation ranges | A two-dimensional array. Each row consists of a reference and its associated page field items. |
Another PivotTable report | One of the previous three kinds of information. |
This property is not available for OLE DB data sources.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for