M
MoBo
Hallo there,
im getting "Unable to connect to the data" when I try to execute the
following python code:
connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;\
User ID=Admin;\
Data Source=C:\\Temp\\List.xlsx;\
Mode=Read;\
Extended
Properties=""HDR=YES;IMEX=1;MaxScanRows=0;Excel 12.0;\"\";\
Jet OLEDB:Engine Type=35;
..." # copied from recording a macro in visio
commandString = "select * from 'Sheet1$'"
visio.ActiveDocument.DataRecordsets.Add(connectionString, commandString, 0,
"Sheet1") # Unable to connect to the data ?!?
Any idea why do I get this error message ?!?
im getting "Unable to connect to the data" when I try to execute the
following python code:
connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;\
User ID=Admin;\
Data Source=C:\\Temp\\List.xlsx;\
Mode=Read;\
Extended
Properties=""HDR=YES;IMEX=1;MaxScanRows=0;Excel 12.0;\"\";\
Jet OLEDB:Engine Type=35;
..." # copied from recording a macro in visio
commandString = "select * from 'Sheet1$'"
visio.ActiveDocument.DataRecordsets.Add(connectionString, commandString, 0,
"Sheet1") # Unable to connect to the data ?!?
Any idea why do I get this error message ?!?