S scgoodman scgoodman Local time Today, 16:02 Joined Jun 6, 2008 Messages 87 Mar 24, 2011 #1 I would like to export a table to excel with a default today's date at the end of the filename. Can someone help me, please?
I would like to export a table to excel with a default today's date at the end of the filename. Can someone help me, please?
ted.martin Registered User. Local time Today, 20:02 Joined Sep 24, 2004 Messages 743 Mar 26, 2011 #2 try this: DoCmd.OutputTo acOutputTable, "myTable", "ExcelWorkbook(*.xlsx)", _ "c:\temp\myTable_" & Format(Date, "ddmmyy") & ".xlsx", False, "", 0, acExportQualityPrint
try this: DoCmd.OutputTo acOutputTable, "myTable", "ExcelWorkbook(*.xlsx)", _ "c:\temp\myTable_" & Format(Date, "ddmmyy") & ".xlsx", False, "", 0, acExportQualityPrint