Skip to content

fix(cell): carry preserved macro sheets through the editor - #178

Open
DmySyz wants to merge 2 commits into
mainfrom
fix/xlsm-preserve-macro-sheets
Open

DmySyz wants to merge 2 commits into
mainfrom
fix/xlsm-preserve-macro-sheets

Conversation

@DmySyz

@DmySyz DmySyz commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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

dsyzov 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
DmySyz force-pushed the fix/xlsm-preserve-macro-sheets branch from 2050b22 to 57b9fe8 Compare November 27, 2026 13:42
@DmySyz
DmySyz marked this pull request as ready for review November 27, 2026 15:41
@DmySyz
DmySyz requested a review from a team as a code owner November 27, 2026 15:41
@DmySyz
DmySyz requested review from MonaAghili and rikled and removed request for a team November 27, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant