The connection for viewing your linked excel worksheet was lost

smanputra

New Member
Joined
Jun 6, 2014
Messages
6
I am getting this error continuously
[Microsoft] [ODBC Excel Driver]The connection for viewing your linked excel worksheet was lost

The piece of code which is resulting in this:
connExcel.Open connStringExcel
sSQLSting = "SELECT * From [Project Detail Data Dump$A1:BH47]"
rstExcel.CursorLocation = adUseClient
rstExcel.Open sSQLSting, connExcel


Please note, the same code was working very fine earlier. When searched, I found its happening due to memory leaks. I have saved the worked as a new copy, Quit the excel (Closing and reopening the file), but nothing is working.

Can somebody please help on this error?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top