Created attachment 183814 [details] Book_LO_Codename.xlsm Attached to the message is a book Book.xlsm created in Excel 2016. The CodeName of book is "MyWorkbook". Book has the sheet "Data" with CodeName "Sheet". The workbook module contains an empty Workbook_Open() macro. Open Book.xlsm in LibreOffice and save as Book_LO.xlsm (see attachment). Open the workbook Book_LO.xlsm in Excel. The VBE editor shows that the structure of the book is broken: there are three book modules. In my opinion, the reason is that LO does not write the "Codename" attribute for the book tag "workbookPr" (\xl\workbook.xml) and sheet tag "sheetPr" (\xl\worksheets\sheet1.xml). The book Book_LO_Codename.xlsm (see attachment) was created by manually adding the specified attributes to the Book_LO.xlsm archive. There are no problems opening this workbook in Excel.
Created attachment 183815 [details] Book.xlsm
Created attachment 183816 [details] Book_LO.xlsm
*** This bug has been marked as a duplicate of bug 139938 ***
I'm not sure why this would be marked as a duplicate. There is nothing in this report about making StarBASIC macros and then exporting to MS Formats. This is just a round-tripping without modifications error report.
My mistake. Sorry.
Repro using Version: 24.2.1.1 (X86_64) / LibreOffice Community Build ID: 359ef544e625d2ffbfced462ab37bd593ca85fa7 CPU threads: 24; OS: Windows 10.0 Build 22631; UI render: default; VCL: win Locale: ru-RU (en_US); UI: en-US Calc: CL threaded