I have an Access db that imports several Excel.xlsx files, create tables, etc. I also created an Excel file template, created in a separate folder. from the Access folder The template has a range (A1:AG35000) established and named qry009_Export2Excel. I am able to export Access qry into the template and retain the formatting and even run another script from Access to make the Excel cells auto fit the data. Where I am having a problem is deleting the rows in the Excel Template worksheet before exporting the Access qry back into it. I keep getting an Range 1004 error. Any suggestions for making this work? Just want to remove the data in Rows 1:35000.