Is it possible to backup my macros

I have created a few macros associated with shortcuts and toolbar buttons, for example for highlighting in various colors and for removing highlight, correcting text in various languages, replacing pasted end of line with space etc.

I have made a backup of my entire LO configuration folder in order to backup and restore such settings.

But is it possible to have a backup of macros like we have for shortcuts?

Hello,
You can do this a couple of ways.


from menu select Tools>Macros>Organize Macros>Basic. Then Organizer... button. On Libraries tab you can export any that is not Standard:

From the Basic IDE, you can export the code shown in the right window from the menu:


or the icon:

1 Like

Oh, but all my macros are saved under My Macros… - Standard - Module 1…

I guess the other solution is the one: exporting the code saves the entire module under which are all my macros - right?

But you state they are under Module1. By using the IDE method and selecting Module1, all will display in the Right window. Then you can save all in one file.

2 Likes

Thank you. I have noticed that in the end and edited my previous reply.

This backup includes all macros under [My Macros].

I too have a lot of macros and run into a similar situation with backups and versioning.

So like others have suggested, I exported my macros into a library then I located the basic subfolder in the user directory of your LO installation and moved it to a Dropbox. I then linked it back to its proper location (see mklink command) and I now have instant backups of my library and versioning through Dropbox.

So on Windows the user folder looks like this,

and the basic subfoler contents with my library (now on Dropbox) looks like this,

2022-10-28 19_29_46-Cmder

HTH