Actually, I just now thought of something. Instead of having the code close down the excel program in the end, would it be easier to have the command button open excel, export the queries, and just leave excel open so the user can "save as" and close it manually? If this can be done, then ignore...