FetchedRowOverflow Property Example
This example refreshes query table one. If the number of rows returned by the query exceeds the number of rows available on the worksheet, an error message is displayed.
With Worksheets(1).QueryTables(1)
.Refresh
If .FetchedRowOverflow Then
MsgBox "Query too large: please redefine."
End If
End With