79748025

Date: 2025-08-27 13:09:25
Score: 1.5
Natty:
Report link

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.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: XlordXtgX