Excel 2013/Win7Excel VBA示波器大型文件
目標:確定大小:#行數/#cols表示excel的工作表太大。
我試着使用:
Dim sh as worksheet
For each sh in ActiveWorkbook.Sheets
'These are just my preferred ways of finding the ending points.
LastRow = ActiveSheet.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LastCol = ActiveSheet.Cells.Find("*", SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
BlahBlah 'code that prints LastRow and LastCol to my userform
Next sh
這工作得很好,但只給了我的統計信息表< =最大的excel行數
因此與文件更改擴展名從.XLSX打.zip和去xl/Worksheets/sheet1.xml我注意到這條線:"<dimension ref="A3:C178"/>'
我希望是一種方法來通過vba抓住每個工作表的方式來限制工作表的方式,但我不能找到一種方式搶這個裁判。
這些工作表是如何創建的?他們實際上是非常大的CSV文件? –
我不確定,我將它們作爲.xlsx文件 - 但顯然它們包含更多信息,然後它們將呈現。 – Schalton