Checking all open excel file in current path and delete them from folder

Hi All,

I need one urgent help!!

I am working on multiple excel files which are present in “input_file” local folder. I want to achieve the following:

1: Checking if any file present into “input_file” folder is not open, if open Close them.
2: Once, I processed all the files present in “input_file” folder, I want to delete them.

hi there

Maybe this discussion can be helpful in you last step of deleting files

Kind Regards