I assume you are referring to LibreOffice Writer.
You will most likely have to re-record the macro in LO. Here's link to the Document Foundation's documentation in macros:
https://help.libreoffice.org/Common/Macro
A web search for "libreoffice macros" will turn up much more.