在Excel文件打开时不能执行Excel流程?

要自动操作的Excel文件处于打开状态时,会显示如下错误信息。关闭该Excel文件后可以正常执行l流程。
image

相关的activity及属性如下:

我记得以前无论是否打开要操作的Excel都没有影响啊。

@Li_Eric

Ideally when the excel file is open then it would throw an error that the file is already in use…

To avoid you can use kill activity before reading excel so that any excel that is open would be closed automatically

Hope this helps

Cheers

在打开Excel之前拖个kill process把excel的进程给杀了