I have excel file LTRIIIFPlots.xls and it has the following macro. I call it through another application. It works good, only problem when i go back to LTRIIIFPlots.xls, it gives me 'Out of memory' Error and i see the VBE has VBA project open twice.
Please tell what modication is required so that i dont get this error.
Thanks,
Amrit
Sub ReadData(stRUNID As String)
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = "Data Source=\\wknt02\mtprod\Executables\Test Specific\IIIF\LTRIIIFPlots.xls;" & _
"Extended Properties=Excel 8.0;"
.Open
End With
cn.Close
Exit Sub
Please tell what modication is required so that i dont get this error.
Thanks,
Amrit
Sub ReadData(stRUNID As String)
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = "Data Source=\\wknt02\mtprod\Executables\Test Specific\IIIF\LTRIIIFPlots.xls;" & _
"Extended Properties=Excel 8.0;"
.Open
End With
cn.Close
Exit Sub