Macro

Opens a dialogue box to organise macros.

To access this command...

Choose Tools - Macros - Organize Macros - LibreOffice Basic, or press +F11 (if not assigned by your system).


Macro name

Displays the name of the selected macro. To create or to change the name of a macro, enter a name here.

Macro from / Save macro in

Lists the libraries and the modules where you can open or save your macros. To save a macro with a particular document, open the document, and then open this dialogue box.

Run / Save

Runs or saves the current macro.

Assign

Opens the Customise dialogue box, where you can assign the selected macro to a menu command, a toolbar, or an event.

Edit

Starts the LibreOffice Basic editor and opens the selected macro or dialog for editing.

New / Delete

Creates a new macro, or deletes the selected macro.

To create a new macro, select the "Standard" module in the Macro from list, and then click New.

To delete a macro, select it, and then click Delete.

New Library

Saves the recorded macro in a new library.

New Module

Saves the recorded macro in a new module.

Organiser

Opens the Macro Organiser dialogue box, where you can add, edit, or delete existing macro modules, dialogue boxes, and libraries.

Module/Dialog tab page

Lets you manage modules or dialog boxes.

Module/Dialog

Lists the existing macros and dialogs.

Edit

Opens the selected macro or dialog for editing.

Close

Closes the dialogue box and saves all changes.

New

Opens the editor and creates a new module.

New

Opens the editor and creates a new dialog.

Delete

Deletes the selected element or elements after confirmation.

Libraries tab page

Lets you manage the macro libraries for the current application and any open documents.

Location

Select the application or the document containing the macro libraries that you want to organise.

Library

Lists the existing macro libraries for the current application and any open documents.

Edit

Opens the LibreOffice Basic editor so that you can modify the selected library.

Close

Closes the dialogue box and saves all changes.

Password

Assigns or edits the password for the selected library.

New

Creates a new library.

Name

Enter a name for the new library or module.

Import

Locate the LibreOffice Basic library that you want to add to the current list, and then click Open.

Delete

Deletes the selected element or elements after confirmation.

Scripts

To open the BeanShell Macros dialogue box, choose Tools - Macros - Organise Macros - BeanShell. To open the JavaScript dialogue box, choose Tools - Macros - Organise Macros - JavaScript.

Export

Opens a dialogue box to export the selected library either as an extension or as a Basic library.

Macros

Select a macro or script from "user", "share", or an open document. To view the available macros or scripts, double-click an entry.

Run

To run a script, select a script in the list, and then click Run.

Create

Creates a new script. The default script editor opens after you enter a name for the script.

Enter a name for the script.

Edit

Opens the default script editor for your operating system.

Rename

Opens a dialogue box where you can change the name of the selected script.

Delete

Prompts you to delete the selected script.

The Macro Selector dialogue box contains two list boxes, namely the Library list box and the Macro name list box.

Library

Select a macro or script from "user", "share", or an open document. To view the contents of a library, double-click an entry in the list.

Macro name

Click a script, and then click a command button.