Operation Manual
Figure 334: Integrated Debugging Environment dialog
Listing 2: Module1 after adding the new macro.
REM ***** BASIC *****
Sub HelloMacro
Print "Hello"
End Sub
Sub Main
End Sub
Recording a macro
If you have to repeatedly enter the same information, you can copy this information after it has
been entered into your document for the first time, then paste the information into your document
each time you want to use it. However, if something else is copied to the clipboard, the contents on
the clipboard are changed. This means that you have to re-copy your repeated information. To
overcome this problem, you can create a macro that enters your repeated information.
Note
For some types of information that you want to repeatedly enter into a document, it
may be more convenient to create an AutoText file. See the Writer Guide Chapter 3
Working with Text for more information.
Make sure macro recording is enabled by going to Tools > Options > LibreOffice > Advanced on
the main menu bar and selecting the option Enable macro recording. By default, this feature is
turned off when LibreOffice was installed on your computer.
344 | Getting Started with LibreOffice 5.0