Writing to Excel with openpyxl or similar

The VE Python API allows users create simple programs using the Python Programming Language, to interact with a VE Model and/or Vista Results File
Post Reply
cmezey
VE Newbie
VE Newbie
Posts: 1
Joined: Tue Feb 16, 2021 6:48 pm

Writing to Excel with openpyxl or similar

Post by cmezey »

I’m currently writing a custom script in VEScripts in IES 2019 to export energy simulation results to Excel. I’m hoping to use the package openpxyl, which will enable me to write to a specific existing worksheet in an existing Excel workbook. I’ve had success importing the library xlsxwriter in VEScripts, but when I use its methods to write to Excel, it always deletes all existing sheets in the Excel file before writing to it. I’ve been struggling to use openpyxl in VEScripts. Does anyone have any recommendations for how to proceed – whether you know of others who have used openpyxl in VEScripts (or whether it’s maybe not available in the VE Python environment), or if there’s a workaround/ other library that you’ve found can write to Excel without writing over existing content. Thanks so much!
Post Reply