Simple:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
TableName, ExcelFile, , SheetName
You can leave off the SheetName and the last 2 commas to put your table in the default sheet (which I believe is "Sheet1"). Note that you can also use a query name in place of the table name.
-Phil-
|