I have opened 3 excels has been opened on my desktop. say Excel1.xlsx, Excel2.xlsx, Excel3.xlsx.
As part of the process I am using 2 excels Excel1.xlsx and Excel2.xlsx. So I want to verify those 2 excels are opened or not. If opened I want to close those two excels Excel1.xlsx and Excel2.xlsx only. Excel3.xlsx should not be closed
I have tried with killprocess, Process.getProcessByName(“excel”) and Process.getPeocess methods to close particular excels, but no luck
Can anyone please help…
Thanks in Advance
I found the solution with excel application scope activity. Its is working to close particular excels event it is in open.
Suggest me if you found any other solution