Querying more than 65536 rows error in Excel 2013

前端 未结 2 887
北恋
北恋 2020-12-06 03:57

I am trying to query a spreadsheet using VBA and am running up against a seeming hard limit of 65536 rows (though I am running Excel 2013).

When trying to select all

2条回答
  •  天命终不由人
    2020-12-06 04:01

    Older Excel versions (prior to 2007) indeed have a limit of some 65k+ rows per worksheet. Run your code and reference any object Lib starting w/Excel 2007 and up (max 1,048,576 rows per worksheet, Lib version correspondingly 12.x and up). Pertinent to your case, try to use a notation [Sheet1$A:A] instead of [Sheet1$A1:A65537] Rgds,

提交回复
热议问题