MathNya / umya-spreadsheet

A pure rust library for reading and writing spreadsheet files
MIT License
238 stars 41 forks source link

Allow to change `codeName` attribute in `workbookPr` #179

Closed nikvoid closed 4 months ago

nikvoid commented 4 months ago

Add a way to change workbook codeName attribute when saving spreadsheet. This allows to use dumped vbaProject code in Workbook object as-is.

Example with default codeName : image Notice that there are Workbook________ (imported code) and Workbook________1 (new) objects. And imported code is in first one, which is not active, so user needs to manually copy code.

If we change codeName to Workbook________: image No Workbook________1 entry and code now is working out of the box.

MathNya commented 4 months ago

@nikvoid Thanks for the PR. We will merge them.