MACROS
MACROS
I.DEFINITION:
II.ENABLING MACRO:
Macro recording can be enabled using the Tools option on the main menu
bar by selecting Tools > Options > LibreOffice > Advanced.
There are two options which are not check marked. Put the checkmark on
the option “Enable macro recording”
The Macro records all the keyboard and mouse actions but the following actions
are not recorded.
• Opening of windows
• Actions carried out in another window than where the recording was started.
• Window switching
• Actions that are not related to the spreadsheet contents. For example, changes
made in the Options dialog, macro organizer, customizing.
• Selections are recorded only if they are done by using the keyboard (cursor
traveling), but not when the mouse is used.
Step 1. Click on Tools > Macros and then click on the Record Macro option.
Step 3. Once you click on Record Macro option, recording of actions starts and a
small alert will be displayed .By Clicking on “Stop Recording” button will stop
the recording of actions.
Step 4. This will open the Basic Macros dialog window to save and run the created
macro.
Step 5. To save the macro, first select the object where you want the macro to be
saved in the Save Macro to list box.
Step 6. The name of the macro by default is Main and is saved in the Standard
Library in Module1. You can change the name of the macro.
STEP: 1 Use Tools > Macros > Run Macro to open the Macro Selector
STEP: 2 Select the library and module in the Library list.
STEP: 3 Select the macro in the Macro name list.
STEP: 4 Click Run to run the macro.
STEPS:
Step 1. Click on Tools > Macros > Organize Macros > LibreOffice Basic to
open the LibreOffice Basic Macro dialog box.
Step 2. Click Organizer to open the Basic Macro Organizer dialog box.
Step: 2 Choose the Modules Tab and select a Module. Click on New to create a
new Module.
VII.MACRO AS A FUNCTION: