Module
Contents
Index 🔎︎

# Macro

Opens a dialog to organize macros.

To access this command...

Choose Tools - Macros - Organize Macros - LibreOffice Basic, or press OptionAlt+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 dialog.

## Run / Save

Runs or saves the current macro.

## Assign

Opens the Customize dialog, 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 \<emph\>Macro from\</emph\> list, and then click \<emph\>New\</emph\>. You can also create a new module, select it in the \<emph\>Macro from \</emph\>list, and then click \<emph\>New\</emph\>.

To delete a macro, select it, and then click \<emph\>Delete\</emph\>.

## New Library

Saves the recorded macro in a new library.

## New Module

Saves the recorded macro in a new module.

## Organizer

Opens the Macro Organizer dialog, where you can add, edit, or delete existing macro modules, dialogs, 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 dialog 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 organize.

### 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 dialog 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 that 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 dialog box, choose Tools - Macros - Organize Macros - BeanShell. To open the JavaScript dialog box, choose Tools - Macros - Organize Macros - JavaScript.

## Export

Opens a dialog 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 dialog where you can change the name of the selected script.

### Delete

Prompts you to delete the selected script.

The Macro Selector dialog 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.

Related Topics

Assigning Scripts in LibreOffice

Recording a Macro