I have to engage an Excel file into an operation.The operation will be sucess if the Excel file in close mode.If it is opend then the error will populate "Excel file used in another process".
What i want is before runs an application Close the excel file even if it is opened.please help me to solve this.

Manas MohapatraRank #182 · 13.2K reputationPosted Aug 7, 2017, 5:12 AM EDT
Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 7, 2017, 5:48 AM EDT
Saravanan PonnusamyRank #634 · 3.8K reputationPosted Aug 7, 2017, 6:14 PM EDT
kenneth quiriciRank #3,889 · 382 reputationPosted Apr 18, 2021, 3:14 AM EDT