calamine icon indicating copy to clipboard operation
calamine copied to clipboard

Bug: error reading vba project

Open sftse opened this issue 1 month ago • 0 comments

Current behavior

InvalidRecordId { expected: 71, found: 26 }

This is from the Enron case, older than 2003. I have a lot of failing test files from that case that I never got around to making issues for.

Expected behavior

Presumably should not error, but have not investigated.

Sample code to reproduce

use calamine::{open_workbook, Error, Reader, Xls};

fn main() -> Result<(), Error> {
    let test_file = "somefile.xlsx";

    let mut wb: Xls<_> = open_workbook(test_file)?;
    wb.vba_project().unwrap();

}

Test file

vba_fail.xls

Environment

- calamine version: master

Checklist

  • [x] I have added a complete sample program that compiles in Rust.
  • [x] I have added a test file.

sftse avatar Nov 11 '25 13:11 sftse