Repository navigation
Conversation
added 2 commits
November 27, 2026 12:15
x2t now puts Excel 4.0 macro sheets, which the editor has no model for, into an opaque PreservedSheets record (type 100) in Editor.bin. Keep its bytes on the workbook when the file is opened and write them back unchanged on save, so x2t can restore the sheets in the saved xlsm. Copy and paste does not carry the record. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: dsyzov <dmytro.syzov@nextcloud.com>
main took workbook record id 100 for SourceFileType, the same id PreservedSheets used, and the PreservedSheets branch is checked first on open, so a workbook converted from ODS would have kept its source file type as preserved sheets. core moves the record to 101 as well. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: dsyzov <dmytro.syzov@nextcloud.com>
DmySyz
force-pushed
the
fix/xlsm-preserve-macro-sheets
branch
from
November 27, 2026 13:42
2050b22 to
57b9fe8
Compare
DmySyz
marked this pull request as ready for review
November 27, 2026 15:41
DmySyz
requested review from
MonaAghili and
rikled
and removed request for
a team
November 27, 2026 15:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
x2t now puts Excel 4.0 macro sheets, which the editor has no model for, into an opaque PreservedSheets record (type 101) in Editor.bin. Keep its bytes on the workbook when the file is opened and write them back unchanged on save, so x2t can restore the sheets in the saved xlsm. Copy and paste does not carry the record.
Needs: Euro-Office/core#306
Assisted-by: ClaudeCode:claude-opus-5-5