diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index 646fe8e5bb..2a7752c525 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -2487,4 +2487,13 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { wb.close(); } + + /** + * Excel 2007 generated Macro-Enabled .xlsm file + */ + @Test + public void bug57181() throws Exception { + XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("57181.xlsm"); + assertEquals(9, wb.getNumberOfSheets()); + } } diff --git a/test-data/spreadsheet/57181.xlsm b/test-data/spreadsheet/57181.xlsm new file mode 100644 index 0000000000..3583a71a59 Binary files /dev/null and b/test-data/spreadsheet/57181.xlsm differ