G
Guest
Hi,
How can I save changes to an excel spreadsheet from Access via VBA without
opening the file? (Access/Excel 2003)
I am trying to export a query to a specified Excel spreadsheet which
performs some calculations and then import the data back into an access
table.
The calculations are best suited to excel.
The problem is that Excel doesn't seem to calculate until you open the
workbook.
The export works fine, but if I then try to immediately import the data I am
getting import errors because the data isn't calculated (#DIV\0! etc). If I
do the export, open the spreadsheet, save it, and then import its fine.
Therefore I think I need to either do the export, save the changes to the
spreadsheet and then do the import using TransferSpreadsheet or calculate the
spreadsheet before import.
Any suggestions greatfully received
How can I save changes to an excel spreadsheet from Access via VBA without
opening the file? (Access/Excel 2003)
I am trying to export a query to a specified Excel spreadsheet which
performs some calculations and then import the data back into an access
table.
The calculations are best suited to excel.
The problem is that Excel doesn't seem to calculate until you open the
workbook.
The export works fine, but if I then try to immediately import the data I am
getting import errors because the data isn't calculated (#DIV\0! etc). If I
do the export, open the spreadsheet, save it, and then import its fine.
Therefore I think I need to either do the export, save the changes to the
spreadsheet and then do the import using TransferSpreadsheet or calculate the
spreadsheet before import.
Any suggestions greatfully received