Delete excel file not working

It looks to me like you have Delete inside the Excel Scope so the file is still open. Move Delete outside the scope. Before worrying about looping around the delete

If the file is still locked, you can use the invoke method here to try to release it. Just ignore that it’s talking about mail attachments.



1 Like