Operation Manual
library named Standard.
7) Select the Standard library and click New Module to create a new module to contain the
macro. This opens the New Module dialog (Figure 336).
Figure 336: New Module dialog
8) 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.
9) In the Macro name text box, type a name for the macro you have just recorded, for
example EnterMyName.
10) Click Save to save the macro and close the LibreOffice Basic Macros dialog.
11) 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 337).
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 337: Macro Selector dialog
Viewing and editing macros
To view and/or edit the macro that you created:
1) Go to Tools > Macros > Organize Macros > LibreOffice Basic to open the LibreOffice
Basic Macros dialog.
Chapter 13 Getting Started with Macros | 339