Error is on the .open line in yellow
run time error 3701: Provider cannot be found. It may not be properly installed.
I suspect I need a reference? tried several but No Go.
TIA
DougP
run time error 3701: Provider cannot be found. It may not be properly installed.
I suspect I need a reference? tried several but No Go.
Code:
FileName = Application.ActiveWorkbook.Fullname
' open ADODB connection
With cn
.Provider = "Microsoft.ACE.OLEDB.12.0; " & _
.ConnectionString = "Data Source=" & FileName & ";" & _
"Extended Properties=\Excel 12.0;HDR=YES;"
.CursorLocation = adUseClient
[highlight #FCE94F].Open[/highlight]
End With
TIA
DougP