Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

I have been trying to create a ADODB connection to an Excel 2010 files located in a web location. But my connection string s not working.


VB
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset

Set con = New ADODB.Connection

vPath = "localhost\MySite\counters\Book1.xlsm"

con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & vPath & ";Readonly=False;Extended Properties=""Excel 12.0;HDR=YES;IMEX=1"";"

con.Open



But it throws an error Could not find installable ISLM

Please help.
Posted

1 solution

Please, have a look here: How To Use ADO with Excel Data from Visual Basic or VBA[^] and follol the instructions. If it won't help, i need to warn you that there are known issues with x64 machines:
Could not find installable ISAM[^]
Accessing Excel files on a x64 machine[^]

Finally, i'm afraid your path is wrong:
VB
vPath = "localhost\MySite\counters\Book1.xlsm"

Have a look here: http://www.connectionstrings.com/excel/[^]
Path to the file should be defined as:
VB
vpath = "C:\some path\some file.xlsm"
'or
vpath = "\\server_name\shared_folder\some file.xlsm"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900