Y
Yaff
Excell stays in memory after the executing the code below
and the .xls file stays locked, preventing me to redo the function
The reason I do the Open/Close is to force Excel to recalculate.
(Data has been updated offline and Excell do not recalculate offline)
Many have the problem, I didn't found any answers to solve it.
Thx...
/***
Dim objXL As Object
Set objXL = CreateObject("Excel.Application")
objXL.Workbooks.Open "filename.xls"
objXL.Workbooks("filename.xls").Save
objXL.Workbooks("filename.xls").Close
DoEvents
objXL.Visible = False
DoCmd.TransferSpreadsheet , , "Test", "filename.xls",True
objXL.Quit
Set objXL = Nothing
***/
and the .xls file stays locked, preventing me to redo the function
The reason I do the Open/Close is to force Excel to recalculate.
(Data has been updated offline and Excell do not recalculate offline)
Many have the problem, I didn't found any answers to solve it.
Thx...
/***
Dim objXL As Object
Set objXL = CreateObject("Excel.Application")
objXL.Workbooks.Open "filename.xls"
objXL.Workbooks("filename.xls").Save
objXL.Workbooks("filename.xls").Close
DoEvents
objXL.Visible = False
DoCmd.TransferSpreadsheet , , "Test", "filename.xls",True
objXL.Quit
Set objXL = Nothing
***/