Hello,
for practical reasons, I'm using sql to read and transform datas in an excel sheet, from the same excel sheet.
Everything was nice using "Microsoft.Jet.OLEDB.4.0", but with "Microsoft.ACE.OLEDB.12.0", I have to register my current excel sheet for it to read the last version of the datas. that is unexpected.
==> Is it a Bug ? Has anyone a solution ?
sample : create workbook "titi.xlsb". open it. create a sheet "hello" and type in cell a1, "World". save it, change A1 per "Goodbye". do NOT save
then trying "select * from [Hello$]" with a macro on this very same workbook :
- I read "World" (last saved data) using connexion string Provider=Microsoft.ACE.OLEDB.12.0;Data Source=hello.xlsb;Extended Properties="Excel 12.0;HDR=No;IMEX=1", .
- I read "Goodbye" (live data) using connexion string Provider=Microsoft.Jet.OLEDB.4.0;Data Source=hello.xlsb;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1"