I found a workaround to solve my problem.
import subprocess excel_path = r"Path\to\your\EXCEL.EXE" file_path = r"Path\to\your\.xlsx\.xlsm\file" subprocess.Popen([excel_path, file_path])
Afterwards, xlwings is able to attach to the Excel file.