0% found this document useful (0 votes)
4 views5 pages

MACROS

A macro is a saved sequence of commands or keystrokes that can be recorded and executed later. The document outlines how to enable macro recording, the actions that are not recorded, and the steps to record, run, and organize macros in LibreOffice. It also includes guidelines for naming macros and creating libraries to store them.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

MACROS

A macro is a saved sequence of commands or keystrokes that can be recorded and executed later. The document outlines how to enable macro recording, the actions that are not recorded, and the steps to record, run, and organize macros in LibreOffice. It also includes guidelines for naming macros and creating libraries to store them.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

MACROS

I.DEFINITION:

 A Macro is a saved sequence of commands or keystrokes that are stored for


later use.
 A macro is a single instruction that executes a set of instructions.
 A sequence of actions such as keystrokes and clicks can be recorded and
then run as per the requirement.

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”

III.ACTIONS THAT ARE NOT RECORDED BY MACRO:

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.

• The macro recorder works only in Calc and Writer.


IV. STEPS TO RECORD A MACRO:

Step 1. Click on Tools > Macros and then click on the Record Macro option.

Step 2. Now start taking actions that will be recorded.

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 7. Click on Save button.

NOTE: A Library is a collection of modules which in turn is a collection of


macros.

V. RULES FOR NAMING A MACRO, MODULE OR A LIBRARY


While naming a Macro, Module or a Library the name should:

• Begin with a letter

• Not contain spaces

• Not contain special characters except for _


(Underscore)
IV. STEPS TO RUN A 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.

V. CREATING AND ORGANISING A SIMPLE MACRO:

The recorded macro is internally stored as instructions written in a programming


language that are executed when the macro is executed or run.

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.

VI. CREATE A LIBRARY TO STORE A MACRO

Step: 1 To create a new library containing modules, click on


Library > New

Step: 2 Choose the Modules Tab and select a Module. Click on New to create a
new Module.

VII.MACRO AS A FUNCTION:

A function is capable of accepting arguments or values. It can perform operations


on the arguments, perform calculations and return the result. REFER PG 139

VIII. ARGUMENTS ARE PASSED AS VALUES -142


IX.WRITING MACROS THAT ACT LIKE BUILT-IN-FUNCTION
X.ACCESSING CELLS DIRECTLY-142

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy