I have a query (qry123) that I have a pivot table form based off. I need VBA that will export this query to Excel. This is not the issue, I can use DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "YTD Data", strFilePath, True command and expor tthis query to a new Excel workbook. What I need is to have code that will change this raw data into a pivot table. Again, this needs to be done from Access. I would like to do this with late binding.