Exporting to a Spreadsheet : Access to Excel « Access « VBA / Excel / Access / Word






Exporting to a Spreadsheet

 
Sub transSpread()
     DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
           "tblSales", "C:\Sales.xls"
     MsgBox "Sales spreadsheet created"
End Sub

 








Related examples in the same category

1.Copying Records to an Excel Spreadsheet