Bug 170261 - Provide 2010 VBA export filters for docm, xlsm, pptm
Summary: Provide 2010 VBA export filters for docm, xlsm, pptm
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:26.8.0 target:26.2.0.2
Keywords:
Depends on:
Blocks: Macro-VBA
  Show dependency treegraph
 
Reported: 2026-01-07 18:51 UTC by Justin L
Modified: 2026-01-10 15:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2026-01-07 18:51:28 UTC
Somewhat connected to tdf#165180, it would probably be good to be able to create 'modern' versions of macro-enabled documents. Currently, any VBA document we create or modify will be forced into a 2007 format. At least for DOCM this can be significant - and the rest of the formats might as well come along for the ride.

The same thing is needed for VBA Templates. However, AFAICS, we do not currently support exporting VBA Templates - at least not via the Linux GUI. (Even with SAL_USE_VCLPLUGIN=gen instdir/program/soffice, the resulting .xltm or .dotm is not valid in Excel/Word.) Import should be possible via the 2007 Template filters, so templates are a very low priority.
Comment 1 Roman Kuznetsov 2026-01-08 21:37:39 UTC
https://gerrit.libreoffice.org/c/core/+/196789
Comment 2 Commit Notification 2026-01-09 16:49:58 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e145133093c2f550dd592a5702c819698d87c4a1

tdf#170261: dotx 2007 is no longer the preferred template.

It will be available in 26.8.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.
Comment 3 Commit Notification 2026-01-10 01:42:48 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-26-2":

https://git.libreoffice.org/core/commit/6726d3a3d8851431925466dc3dd3a50123011514

tdf#170261: dotx 2007 is no longer the preferred template.

It will be available in 26.2.0.2.

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.
Comment 4 Commit Notification 2026-01-10 15:34:13 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b5b2413db60ac2cb01a01a8c6d2c52bf7726caee

tdf#170261: introduce XLSM 2010 (VBA) filters

It will be available in 26.8.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.
Comment 5 Commit Notification 2026-01-10 15:35:15 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/df7e61358b4d3b24eb6834c52abdb32dc2e9b3f4

tdf#170261: introduce DOCM 2010 (VBA) filters

It will be available in 26.8.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.