I have an application I compiled over 2 years ago that uses a standard WB dialog, allows you to pick from two types of Excel files; Opens the selected file, 'shrinks it' to 1/8th its size, renames column headers, saves under shrink file name, imports into database table, closes Excel, returns to dialog [up to 10 files processed daily].
Has never failed and has been run on Win7 64-bit for last 6 months. Lately, and sporadically, I might be processing say 5 files, will complete the 4th file, the dialog will return, select the 5th file, but before processing begins, an excel message pops up saying file #4 is already in use Cancel/Open-ReadOnly - but displays only a grey blank Excel dialog. Fix is to open task manager and kill the Excel *32 process.
This was a hit or miss, but now happens with more frequency. Would the recommendation be to re-compile the script adding the process extender, then include a UDF to check for EXCEL.exe and terminate() if found?