Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #100
Summary of updated project resources:
vbaProject.bin
file that contains the metadata for a vba project. Project was created with a single, empty function calledplaceholder
in theThisWorkbook
module. This is required for an xlsm file to produce the bin file when renaming an existing, valid xlsm file with macros to a zip file and extracting its contents.Workbook.py
to include ahas_macros
flag (and private/public class variable) that can be explicitly set only when calling theWorkbook.save()
function. This way it's strictly "opt-in" behavior to include the added xml properties andvbaProject.bin
file.[Content_Types].xml
,workbook.xml
, andsheet.xml
files to allow the file to properly recognized and opened by Excel.