I created an Excel macro in which I used Microsoft.Jet.OLEDB.4.0 to run a query on Excel worksheets.
It works fine on my machine, but my client is facing a problem. (see attached print on screen)


Here are the details for my connection object:
Dim cn
Set cn = CreateObject("ADODB.Connection")
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = "Data Source=" & ThisWorkbook.FullName & "; Extended Properties=Excel 8.0"
.Open
End With
Please note: I need to make code working in "Windows 7"
Tejas source
share