Trying to close all excel files using the kill process activity but not able to do

Hello All

I am trying to close all the excel file opened during running workflow after the invoke method but not able to close. Can anyone help me??

Thanks in advance.

1 Like

Hi @AryanSingh,
You need to operate inside Excel Application Scope activity like this:
image
Eventually there is a way to use PowerShell script for searching the application opened processes and kill them all (with use of Invoke Powershell activity).

1 Like

Hi @AryanSingh

Use kill process and give the process name as “Excel”
Or Excel.exe
Thanks
Ashwin.S

1 Like

@AshwinS2
@Pablito

Ok, so i need to place the kill process inside the excel. And need to put EXCEL.exe in “processname”??

Thank You

1 Like

Yes process name in kill process activity

@AshwinS2

Ok. Let me try.

Thanks

@Pablito
@AshwinS2

I am still not able to close the process.

Try to use just “EXCEL” instead of “EXCEL.EXE” in the Process Name property.

4 Likes

@Pablito
@AshwinS2

Solved.

Thanks.

2 Likes

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