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
I encountered this problem a long time ago. What I did was writing my query like this:
select Data from [Temp$]
Where Temp was my sheet name, the content of cell A1 was "Data" and the content of A2:A80000 were ids
It worked.