Syntax

expression.CancelRefresh

expression A variable that represents a QueryTable object.

Example

This example cancels a query table refresh operation.

Visual Basic for Applications
With Worksheets(1).QueryTables(1) If .Refreshing Then .CancelRefresh End With 

See also: