I am reading data from an Excel 2007 spreadsheet using ADO. Connection setup is simple:
Dim ado As ADODB.Connection Set ado = CreateObject("ADODB.Connection") ado.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=myFilename.xlsx;Extended Properties=""Excel 12.0 Xml;HDR=NO;IMEX=1"";" ado.Open
I can call ado.OpenSchema without problems on this object. However, when I try to request data:
Dim rs As ADODB.recordSet Set rs = ado.Execute("SELECT * FROM [Current Work Load$]")
I just get a table full of Nulls.
This is referred to as a problem on the Microsoft support site - but I explicitly turned on the import mode (as you can see in the code above - IMEX=1 ).
source share