79698517

Date: 2025-07-11 15:02:00
Score: 1
Natty:
Report link

Try with win32com lib.


excel = win32com.client.Dispatch("Excel.Application")
excel.Visible = False
excel.DisplayAlerts = False
wb = excel.Workbooks.Open(file_path)
ws = wb.Sheets("Sheet1")
used_range = ws.UsedRange
used_range.Value = used_range.Value
wb.SaveAs(file_path)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ana Varathan