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 126.96.36.199.alpha0+ (d6e8e41c22023bc15cc4c9659b33c1cc3d6edb75), 188.8.131.52 / 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: 184.108.40.206.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
oops,the last line was a typo.
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. ***