Save Excel File As than close it

I’m inside of an Excel Probe activity running in a loop (while do), with “file1” opened. So, I don’t want to break the loop or close this “file1”.

Now, I saved “file1” with a new name: “excel_file_name”.
The issue is that I want to close the newer Excel file.

image

Tried Close Workbook activity but it doesn’t help since it doesn’t read the variable named “excel_file_name” because : the value of type “string” cannot be converted to Workbook Application".

How to close this “excel_file_name” file ?

Hi @IPIX

Close workbook is the Classic activity and the Save Excel File As activity is the Modern design experience activity. we can’t use the excel_file_name in the Close workbook.

In the Excel process scope activity open the properties in Existing processes action option select the Force kill option in dropdown. It will close the excel automatically after the activities inside Excel Process scope activity ended,

Hope it helps!!

Hi @IPIX

Use Kill Process activity

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