Excel VBA QueryTable
ExcelVBA
QueryTable object (Excel) | Microsoft Docs
QueryTable.FetchedRowOverflow property (Excel) | Microsoft Docs
がでる。
40,000行くらい
worksheetの上限超え, refreshでerrorだが、、、
参考
VBA CSV ファイルの読み込み (QueryTables.Add 関数を使う)
How to obtain the row count of a QueryTable from a Web query | PC Review
QueryTable.ResultRange.Rows.Count
[querytable.Delete - Programming Excel with VBA and .NET Book]
code: delete_query_table.vba
Dim qt As QueryTable
For Each qt In ActiveSheet.QueryTables
If qt.Refreshing Then qt.CancelRefresh
qt.Delete
Next
ActiveSheet.UsedRange.Clear