Hello.
I have the following code to save my Access query, export it to my Excel spreadsheet and rename the tab:
What I would like to do is have the Excel spreadsheet open once it has been exported. I've seen a lot of ways to do it but not if I want to rename my spreadsheet at the same time. Can this be done?
Any help is much appreciated.
GLAT
I have the following code to save my Access query, export it to my Excel spreadsheet and rename the tab:
Code:
If Me.Dirty Then Me.Dirty = False End If DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "InvoiceData", "X:\Spreadsheets\Invoices\InvoiceData.xlsx", True, "DailyData"
Any help is much appreciated.
GLAT
Comment