How can I include the sort and filter that a user has chosen in a Form's datasheet view when exporting the datasheet into an Excel file? Normally I use DoCmd.TransferSpreadsheet for the export, but that only accepts tables or queries. The sort is stored in the form's OrderBy property and the filter in the form's Filter property, so the Excel file does not have those since TransferSpreadsheet takes the query that the form is based on as a parameter, which is before the sort/filter takes place.