John Jason Jordan wrote:

So if I created macros while working on a template, and I used the
default settings, the macros will be in the template's Standard library
and can never be accessed from any other document, and can never be
moved to any other document.

Conclusion: Either I have misunderstood something, or I am screwed.

You can't copy the Standard library, but you can copy (or move) a module or modules from the Standard library in your document into the Standard library in "My Macros", so that the macros it contains are accessible from any document.

Open your document

Tools - Macros - Organise macros - OpenOffice Basic...

Click the Organiser button on the right.

This should open a tree box showing My Macros, OpenOffice Macros, and your open document's macros.

Click the plus sign next to My Macros, to see the libraries.
Click the plus sign next to the Standard library to see the modules it contains.
Do the same with your document.
Now you should be able to simply drag the module containing your macros up to the My Macros Standard library - it will show as a black line in the place where you want to drop it. If you hold down Ctrl while dragging, it will make a copy rather than moving the original module.

(You will need to make sure the module doesn't have the same name as a module already in My Macros Standard. If you need to change a module name, click on the module name, and click Edit. This will open the basic editor. Right click on the tab at the bottom which shows your module name, and click on Rename.)

(Also, if any lines in your code make reference to a particular location of a module or library, you will need to re-write that line of code to take account of the new location.)

Hope that helps

Andy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to