• Your 3011 error indicates that Access cannot find the object being specified in the statement. Since you are using variables, I would suspect that the path to where you are trying to export the Excel workbook to doesn't exist. To verify that you can put in some code to trap the error and display the variables being used to construct the path.

    If that turns out not to be the case, another more remote possibility is an issue with the TransferSpreadsheet method in your version. Export capabilities were reworked extensively in 2010 and were problematic until SP1 was released, but they still seem to experience occasional issues even with 2013 in my experience.

    Wendell
    Colorful Colorado
    You can't see the view if you don't climb the mountain!