Created attachment 171624 [details] Module1 - Se situer.xlsm (contain macros but impossible to link with buttons) Calc: When I save XLSM excel workbook, I lost all connection between objects and VBA macros. XLSM document provide from Excel 2010. Recorded onto XLSM because document contain VBA macros. When i read this document with Libre office : no problem. The problem exists when I save this file from Libre Office program. If I want to re-open this file, then, all macros linked from objets (like button, or, event in a sheet) are lost. (See "Module 1 - Se situer" tab). There is some buttons that are unliked.
Version: 7.1.2.2 (x64) / LibreOffice Community Build ID: 8a45595d069ef5570103caea1b71cc9d82b2aae4 CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: fr-FR (fr_FR); UI: fr-FR Calc: CL
Created attachment 182272 [details] disable-vba-refactoring.oxt: prevent changing Excel macro when saving. Perhaps this extension will help. It prevents LO from making changes to the macro code. So you have to make it all work using Excel, but after that you can USE the document in LibreOffice, and saving it will not break the macros.
AFAICS, the supplied .xlsm document is already broken. A working document (either an Excel document or an ODS) would be necessary for further enhancement.
*** This bug has been marked as a duplicate of bug 124203 ***
*** This bug has been marked as a duplicate of bug 105813 ***