How to check an excel file in share path is already opend or not

Hi All,

I will generate the report in Excel for every month In a same file, it will rewrite the file for every month,
Before opening the file I need to check whether the file is already open or not, If excel file open I need to wait for 5 to 10 seconds and use the file,

can you please advise

@Boopathi - please check this post - it might helpful.

Check this workflow I have used invoke code , @Boopathi
Test_1.xaml (14.0 KB)
In arguments create Boolean variable and Pass your filepath .

Hi Manish,
Thanks for your Post, As you advised I given the file name in argument when I run the bot first time it was extracted the information, WHile opening second time it showing as excel file is already open after excel Application scope excel will automatically close , But I am getting a message box second time and Bot close the execution