HI,
How about using Classic CloseWorkbook activity as the following?
Sample Sample20241127-3.zip (22.6 KB)
Regards,