I am presented with the following error when sending the email; apparently it does not allow to attach the .xlsx file since it is open. (Es posible que el archivo ya esta abierto o que no tenga permiso para abrirlo)

I managed to configure in studio X all the steps suggested in the RobotPath, but I am presented with the following error when sending the email; apparently it does not allow to attach the .xlsx file since it is open. Is there a function to close Excel ?.