OLEDBConnection.Reconnect Method (Excel)

Drops and then reconnects the specified connection.

Version Added: Excel 2010

expression .Reconnect

expression A variable that represents an OLEDBConnection object.

The following code example causes the specified connection to reconnect.

ThisWorkbook.Connections(1).Reconnect
Show: