I have a Access form with a command button that exports the results of a query to Excel using the following code:
The data in "CTP.xls" is then imported into another spreadsheet named "CTPartic.xls".
I would like to automate the data transfer so that spreadsheet "CTPartic.xls" is opened by the code, the links are updated and the "GetSaveAsFilename" dialog box is opened.
Can anyone advise if this is possible and the code I should use.
Best Regards
John
Code:
DoCmd.OutputTo acOutputQuery, "QryCTP", acFormatXLS, "CTP.xls", True
I would like to automate the data transfer so that spreadsheet "CTPartic.xls" is opened by the code, the links are updated and the "GetSaveAsFilename" dialog box is opened.
Can anyone advise if this is possible and the code I should use.
Best Regards
John