Workbook.Connections property (Excel)

Returns a Connections object that is a container for connections between the workbook and data sources such as ODBC, OLEDB, etc., that can refresh the data without prompting the user. Read-only.

Syntax

expression.Connections

expression A variable that represents a Workbook object.

Example

The following example refreshes the OBDC and OLEDB connections of the active workbook.

ActiveWorkbook.Connections(1).ODBCConnection.Refresh 
ActiveWorkbook.Connections(1).OLEDBConnection.Refresh 

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.