I had this code working and after I put code in to automatically save the workbook on close I am getting this error.
This is the structure. I am autoprocessing emails I receive using a rule in outlook. The rule searches for new mail with a certain subject, moves it to a new folder, and runs a macro in outlook to copy the data from the email body to an excel file. The Excel file has an auto_open macro that appends the new data from each email to an access database, moves the data then to a new sheet, saves the workbook, and closes the file.
So when Outlook is processing the email it stops on this line:
Full code:
Outlook
Excel code in workbook:
Excel Code in module:
Bookmarks