我使用下面的代码在 excel 中从 web 接收表格
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;some url")
.WebSelectionType = "xlSpecifiedTables"
.WebTables = "10"
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
但我也想从我得到的那张表中获取行数。那我怎么能做到呢?
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;some url")
.LineCount 'is it smt like this???????
End With