Organizing Libraries and Modules/text/sbasic/shared/01030400.xhplibraries;organizingmodules;organizingcopying;modulesadding librariesdeleting;libraries/modules/dialogsdialogs;organizingmoving;modulesorganizing;modules/libraries/dialogsrenaming modules and dialogsmw changed"organizing;", "dialogs;" and "renaming modules"Organizing Libraries and Modules
Organizing LibrariesCreating a New LibraryChoose Tools - Macros - Organize Macros - %PRODUCTNAME Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.Click the Libraries tab.Select to where you want to attach the library in the Location list. If you select %PRODUCTNAME Macros & Dialogs, the library will belong to the $[officename] application and will be available for all documents. If you select a document the library will be attached to this document and only available from there.Click New and insert a name to create a new library.Appending a LibraryChoose Tools - Macros - Organize Macros - %PRODUCTNAME Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.Click the Libraries tab.Select to where you want to append the library in the Location list. If you select %PRODUCTNAME Macros & Dialogs, the library will belong to the $[officename] application and will be available for all documents. If you select a document the library will be appended to this document and only available from there.Click Append and select an external library to append.Select all libraries to be appended in the Append Libraries dialog. The dialog displays all libraries that are contained in the selected file.If you want to insert the library as a reference only check the Insert as reference (read-only) box. Read-only libraries are fully functional but cannot be modified in the Basic IDE.Check the Replace existing libraries box if you want existing libraries of the same name to be overwritten.Click OK to append the library.Deleting a LibraryChoose Tools - Macros - Organize Macros - %PRODUCTNAME Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.Click the Libraries tab.Select the library to be deleted from the list.Click Delete.Deleting a library permanently deletes all existing modules and corresponding procedures and functions.You cannot delete the default library named "Standard".If you delete a library that was inserted as reference only the reference is deleted but not the library itself.Organizing Modules and DialogsCreating a New Module or DialogChoose Tools - Macros - Organize Macros - %PRODUCTNAME Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.Click the Modules tab or the Dialogs tab.Select the library where the module will be inserted and click New.Enter a name for the module or the dialog and click OK.Renaming a Module or DialogChoose Tools - Macros - Organize Macros - %PRODUCTNAME Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.Click the module to be renamed twice, with a pause between the clicks. Enter the new name.In the Basic IDE, right-click the name of the module or dialog in the tabs at the bottom of the screen, choose Rename and type in the new name.Press Enter to confirm your changes.Deleting a Module or DialogChoose Tools - Macros - Organize Macros - %PRODUCTNAME Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.Click the Modules tab or the Dialogs tab.Select the module or dialog to be deleted from the list. Double-click an entry to reveal sub-entries, if required.Click Delete.Deleting a module permanently deletes all existing procedures and functions in that module.Organizing Projects among Documents or TemplatesMoving or copying modules between documents, templates and the application.Open all documents or templates among which you want to move or copy the modules or dialogs.Choose Tools - Macros - Organize Macros - %PRODUCTNAME Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.To move a module or dialog to another document, click the corresponding object in the list and drag it to the desired position. A horizontal line indicates the target position of the current object while dragging. Hold the CommandCtrl key while dragging to copy the object instead of moving it.