How to copy macro libraries between odb's

Hi,

Is there a way to copy macro libraries from one to another database. Never figured out the Import feature in the dialog.
Recreating and copying tons of subs can be a bit of a pain though.
Thanks for any pointers

Have you tried to go to LibreOffice Basic Library Organizer and just drag and drop modules along the tree from one library to another? Try it. Just don’t save the original file after that to keep the library in it as well.

@JohnSUN, thanks for that, I did drag n drop once with dialogs and must have saved everything because the original dialog was gone.

Yes, saved it in vain. No problem - just drag it back, but this time do not save the file from which the dialog was taken. (you can try to drag with the Ctrl key pressed, but for me it causes the office crash)

@JohnSun yep ctrl sends me crashing as well, just drag,outline moves but does not duplicate, guess its LO 7 still very buggy.

Not “very”, just “slightly” :slight_smile: It is this error that most likely appeared recently (I saw it only today, before dragging from Ctrl worked well), you need to write a bug report. Can you?

Will do, they have not responded to my last one yet

Oh, give them some time. My bug was closed for seven years

By the way, you can try to do this in OpenOffice - there Ctrl+drag works well

Hello,

Using Library Organizer on the Library tab, have no problem exporting any library (Standard not included) as Basic then importing that into another Base file.

Ahh @Ratslinger - so its some sort of detour = export to some file and then import that file ? And Standard is Standard in MyMacros or the other Standard?

Any Standard library. Don’t know why you cannot export from there. Yes it is a file for basic and/or dialogs. Have used these methods in past (and some tests today) to move code via Basic library or even as extension. Also note there is functionality in Basic IDE. Menu File has import/export capabilities.

As always thank you so much for clarification on this. Basically that means one shouldn’t really use the Standard Library at all. Now how to I mark this question as solved since here is no answer but only comments ?

Hello,

To complete the answer, from comments:

Using Library Organizer on the Library tab, have no problem exporting any library (Standard not included) as Basic then importing that into another Base file.

Any Standard library. Don’t know why you cannot export from there. Yes it is a file for basic and/or dialogs. Have used these methods in past (and some tests today) to move code via Basic library or even as extension. Also note there is functionality in Basic IDE. Menu File has import/export capabilities.

And as for not using Standard libraries, I use them all the time. This is the one library which does not need loading before use. You can export these routines through the IDE as noted. Will be in smaller chunks.