Skip Bisconer
Who Me?
- Local time
- Today, 06:36
- Joined
- Jan 22, 2008
- Messages
- 285
I am not getting what I need with this function. It sends the data to Excel OK but I need the Excel file to retain the macros set into it and this function seems to make a new workbook each time.
These spreadsheet files get updated monthly and emailed to the CC holder for authorization of charges. The holder fill in GL Expense codes and customer information from a combobox in the worksheet and email the file back to the administrator who has the Excel file linked into his database.
Can someone point me in the correct direction? Thanks for looking at my problem
These spreadsheet files get updated monthly and emailed to the CC holder for authorization of charges. The holder fill in GL Expense codes and customer information from a combobox in the worksheet and email the file back to the administrator who has the Excel file linked into his database.
Can someone point me in the correct direction? Thanks for looking at my problem
Code:
DoCmd.OutputTo acOutputQuery, "CurrentCharges11012", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Young.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges11020", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Murphy.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges11038", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Hyler.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges11046", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Donati.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges11079", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Watkins.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges11095", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\O'Boyle.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges11103", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Brun.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges11111", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Bourgeois.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges11152", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Bisconer.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges12002", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Kowaleski.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "CurrentCharges12085", "Excel97-Excel2003Workbook(*.xls)", _
"C:\Amex\Briare.xls", False, "", , acExportQualityScreen