The problem only exists when I open the workbook in a new Excel session and there are other sessions open before
No problem when I open the workbook in the same Excel session as the first Excel session
The problem is that something breakes down:
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
strFile = ThisWorkbook.FullName
strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strFile _
& ";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"";"
cn.Open strCon
When the last line i.e. cn.open strCon above is executed there opens a read only version of the workbook in the first Excel session and everything breakes down.
This is very strange because it is another session in which the read only version pops up in.
I have seen some people complaining about this issue without a solution e.g.: