Hi,
I am using Excel to query a database and then publishing the results to an html document. I have Excel set to refresh the data everytime it is opened. I am then using a scheduled task in Windows to open the Excel spreadsheet nightly thereby refreshing the data.
This works fine except that the published html page is only updated AFTER the Excel worksheet is saved with the refreshed data. So I'm assuming I need to somehow use VBA to close Excel and save changes immediately after it is opened by the scheduler.
Any ideas on how to do this or perhaps a cleaner method all around for accomplishing this?
Thx
I am using Excel to query a database and then publishing the results to an html document. I have Excel set to refresh the data everytime it is opened. I am then using a scheduled task in Windows to open the Excel spreadsheet nightly thereby refreshing the data.
This works fine except that the published html page is only updated AFTER the Excel worksheet is saved with the refreshed data. So I'm assuming I need to somehow use VBA to close Excel and save changes immediately after it is opened by the scheduler.
Any ideas on how to do this or perhaps a cleaner method all around for accomplishing this?
Thx