Would it be possible to add a new action to run a macro in LibreOffice or Ms Office?
If LibreOffice or Ms Office has AppleScript support for running their scripting language, then presumably it could be done, and someone could likely write a Plug In action to do ti.
I'm not sure I would create such an action. Maybe for MS Office apps (I'll add it to the list), unlikely for LibreOffice.