After the fix of bug 108269 the macros in DOCM files are roundtripped. However, when saving a DOCM as DOCX, the macros should be removed, which does not happen currently. Eg. after saving attachment 133753 [details] (a DOCM with a macro) as DOCX and reloading it, the usual macro dialog will show. Word fails to open such a DOCX. Observed using LO 6.3.0.0.alpha0+ (d6e8e41c22023bc15cc4c9659b33c1cc3d6edb75), 5.4.0.3 / Windows 7. Versions before 5.4 would be fine, because macros got discarded during save.
Btw, saving the file as ODT, then reloading and saving it as DOCX is a workaround.
Confirm with Version: 6.3.0.0.alpha0+ Build ID: 630db80d17616d635cf2e5f1d5a0852428b794a3 CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: x11;
just a guess(not tested): What spreadsheet formats are doing https://opengrok.libreoffice.org/xref/core/filter/source/config/fragments/filters/calc_MS_Excel_2007_VBA_XML.xcu?r=77ae0abe#22 https://opengrok.libreoffice.org/xref/core/oox/source/core/filterbase.cxx?r=36543fc4#434 https://opengrok.libreoffice.org/xref/core/oox/source/core/filterbase.cxx?r=36543fc4#583 https://opengrok.libreoffice.org/xref/core/sc/source/filter/oox/excelfilter.cxx?r=09cd0e36#226 https://opengrok.libreoffice.org/xref/core/sc/source/filter/excel/xestream.cxx?r=09cd0e36#910 https://opengrok.libreoffice.org/xref/core/sc/source/filter/excel/xestream.cxx?r=09cd0e36#1054 vhttps://opengrok.libreoffice.org/xref/core/sc/source/filter/excel/xestream.cxx?r=09cd0e36#1054
oops,the last line was a typo. https://opengrok.libreoffice.org/xref/core/sc/source/filter/excel/xestream.cxx?r=09cd0e36#1082
Created attachment 156343 [details] Sample DOC w macro Same thing happens if the source is a DOC with macro. Attaching attachment 133753 [details] converted to DOC in Word as a sample for that. When converted to DOCX in LO, the macro persists.
*** Bug 129216 has been marked as a duplicate of this bug. ***
Dear Aron Budea, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Still in LO 7.4.0.0.alpha0+ (ba7db98cca3d8516697c94ef0d6af27db9e1655e) / Ubuntu.
offtkp committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/cbca5617387aaa39c9ee86272166bb3df7874b25 tdf#125338 Do not export macros when saving as .docx It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.