How to close specific excel files in uipath without killing all excel instances?

Hi all ,
I am facing an issue with excel files that i am using in my process. BOT is using an input excel file and writing the output in same excel . In my process i am using excel application scope different sequences. After completing the process i need to close that specific workbook. If i kill all instance it will effect the end users all other excel files.
I have named an output variable for workbook (1st excel applcation scope).
But i am unable to use that variable to further application scopes (USE Existing workbook property),It throws a error(the following overload groups are configured uipath existing workbook).attaching SS below !

.
Is there any way to close excel without interepting with end users excel files.

@ramees.pk,

You can use Close WorkBook activity with in the excel application scope.

Else you can try with Close Applciation, this will work with correct titles, so you need to pass the title of the excel you need to close.

<wnd app='excel.exe' cls='XLMAIN' title='Book1 - Excel' />
3 Likes

Thanks for reply,
So where ever i am using excel application scope i need to use close workbook within that scope right?
there is an another property like use existing workbook, can i give workbook variable over there? Does it works?

Hi friend ,have u solved your problem ,I just met the same problem ,wanna kill specific excel without kill all excel process.