Operation Manual
1) Go to Tools > Macros > Record Macro on the main menu bar to start recording a macro.
A small dialog is displayed indicating that LibreOffice is recording a macro.
2) Type the desired information or perform an appropriate series of operations. As an
example, type your name.
3) Click Stop Recording on the small Recording dialog to stop recording and the LibreOffice
Basic Macros dialog opens (Figure 332 on page 343).
4) Open the library container My Macros.
5) Find the library named Standard in My Macros. Note that every library container has a
library named Standard.
6) Select the Standard library and click New Module to create a new module to contain the
macro. This opens the New Module dialog.
7) Type a descriptive name for the new module, for example Recorded, and click OK to create
the module. The LibreOffice Basic Macros dialog now displays the name of the new module
in the Standard library.
8) In the Macro name text box, type a name for the macro you have just recorded, for
example EnterMyName.
9) Click Save to save the macro and close the LibreOffice Basic Macros dialog.
If you followed all of the above steps, the Standard library now contains a module named
Recorded and this module contains the EnterMyName macro.
Note
When LibreOffice creates a new module, it automatically adds the macro named Main.
Running a macro
1) Go to Tools > Macros > Run Macro on the main menu bar to open the Macro Selector
dialog (Figure 335).
2) For example, select your newly created macro EnterMyName and click Run.
3) Alternatively, go to Tools > Macros > Organize Macros > LibreOffice Basic on the main
menu bar to open the LibreOffice Basic Macros dialog, select your macro and click Run.
Figure 335: Macro Selector dialog
Chapter 13 Getting Started with Macros | 345