You may have some luck exporting it directly from the database:
https://answers.atlassian.com/questions/144023
or you could try using this plugin (marked as only compatible up to 4.3, but it may still work:
https://marketplace.atlassian.com/archive/com.appfusions.confluence.usermacro.user-macro-exporter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.