How many fields does your table have and do you know how many records?
All you have to do is add the range argument i.e. a table with 10 records and four fields would be
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "EXPORTDATA", "c:\EXCELSHEET.xls", True, "A1:D10"
David