You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versions of xlwings, Excel and Python ( 0.30.10, Office 365, Python 3.10.8)
Describe your issue (incl. Traceback!)
Include a minimal code sample to reproduce the issue (and attach a sample workbook if required!)
defexportToExcelDashboard():
try:
withxw.App(visible=False) asapp:
wb=xw.Book(directoryOutput+"/Dashboard - xxx - 2023.xlsb", update_links=False)
# start and end yearsprojectSheet=wb.sheets['projectInfo']
#clear datasheet ready for new dataprojectSheet.clear_contents()
#paste data to columnsprojectSheet['a1'].value='Variable'projectSheet['b1'].value='Value'# Save and close workbookwb.save()
wb.close()
except:
globals()["tryToOutputToExcelTablesCount"] +=1print("Tables not inserted into Excel dashboard ("+str(tryToOutputToExcelTablesCount)+")")
else:
globals()["tryToOutputToExcelTablesCount"] +=1print('All outputs printed after '+str(tryToOutputToExcelTablesCount) +" attempt/attempts")
globals()["areTablesOutputToExcelVariable"] +=1finally:
print(' ')
# 1st tryexportToExcelDashboard()
Apologies I can't give much context or a summary of the error, it's very unknown to me, and I'm also unable to replicate, it seems to be a one off issue (it has been working well across several months, including for colleagues with similar code).
Thank you for any ideas :)
The text was updated successfully, but these errors were encountered:
Even I am also having similar issue where I am unable to access any kind of excel file using xlwings. The above error is coming everytime I run xlwings.Book
Windows 11 Pro
Versions of xlwings, Excel and Python ( 0.30.10, Office 365, Python 3.10.8)
Describe your issue (incl. Traceback!)
Include a minimal code sample to reproduce the issue (and attach a sample workbook if required!)
Apologies I can't give much context or a summary of the error, it's very unknown to me, and I'm also unable to replicate, it seems to be a one off issue (it has been working well across several months, including for colleagues with similar code).
Thank you for any ideas :)
The text was updated successfully, but these errors were encountered: