Forum Moderators: open
If something goes wrong during the process, the EXCEL.EXE process continues to run and prohibits the person from uploading or reading another file. This is the error message thrown:
Win32 Error. Code: 1224. The requested operation cannot be performed on a file with a user-mapped section open
Is there a way to trap that error and if so, kill the Excel process?
How are you opening Excel now? If you are explicitly creating an Excel and document object you can try to close them in your catch like:
excelDoc.Close()
excelApp.Quit()
excelDoc and excelApp will be the name of your objects.