Application.ODBCTimeout Property (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns or sets the ODBC query time limit, in seconds. The default value is 45 seconds. Read/write Long.

expression .ODBCTimeout

expression A variable that represents an Application object.

The value 0 (zero) indicates an indefinite time limit.

This example sets the ODBC query time limit to 15 seconds.

Application.ODBCTimeout = 15
Show: