Getting Started Guide
Navigate to the directory containing the library to import. There are usually two files
from which to choose, dialog.xlb and script.xlb. It does not matter which of these two
files you select; both will be imported. Select a file and click Open to continue.
Figure 308: Choose library import options
If the library already exists, it will not be replaced unless Replace existing libraries
is checked. If Insert as reference is checked, the library is referenced in its current
location, but you cannot edit the library. If Insert as reference is not checked,
however, the library is copied to the user’s macro directory.
Macros can be stored in libraries inside OpenOffice.org documents. Select a
document rather than a directory on disk (as shown in Figure 307) to import libraries
contained in a document.
Downloading macros to import
Macros are available for download. Some macros are contained in documents, some
as regular files that you must select and import, and some as macro text that should
be copied and pasted into the Basic IDE; use Tools > Macros > Organize Macros
> OpenOffice.org Basic to open the OpenOffice.org Macros dialog, choose the
macro to edit, and then click Edit to open the macro in the Basic IDE.
Some macros are available as free downloads on the Internet (see Table 3). “Adding
an existing macro“ on page 323 describes how to add these macros to your macros
library.
Table 3. Places to find macro examples
Location Description
http://www.ooomacros.org/ Excellent collection of packaged macros.
http://www.pitonyak.org/oo.php Reference materials regarding macros.
http://www.pitonyak.org/database/ Reference materials regarding database
macros.
http://development.openoffice.org/ Lots of links to everything.
http://www.oooforum.org/ Many examples and help.
Chapter 13 Getting Started with Macros 337










