How to close certain excel file

Dear Expert

I have opened Excel A, Excel B and Excel C
When process goes by, I need to close Excel A first
But I don’t want to use [Kill Process] cause it will close all Excel files

May I know if there is any other way to do so?

Thanks
Ivan

HI,

How about using Classic CloseWorkbook activity as the following?

Sample
Sample20241127-3.zip (22.6 KB)

Regards,

@Yoichi
Thanks for the quick feedback
Can you help show me the full coding inside this box?

HI,

Can you open and run the above attached sample project?

The expression is as the following

New UiPath.Excel.WorkbookApplication("A.xlsx")

Regards,

@Yoichi

Thank you~ This is the way~

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.