I am trying to read a file from sharepoint location. The code works absolutely fine when reading from local drive. Please also note that the file type is .xlsx If I convert the file into .xls the code works fine regardless whether the file is on the server or on the local path.
objConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & dataPath & ";" & _
"Extended Properties=""Excel 8.0;HDR=No;"";"
Error received
External table is not in the expected format.