Macros in Calc
Macros in Calc
A Macro in Calc is a set of commands or keystrokes that are stored with a name
for automating repeating tasks. A macro is a single instruction that executes a
set of instructions.
For example, a macro may be created for, typing some content in cells, for
formatting the content, for writing a formula, for copying and pasting the
formula, for changing the size of rows and columns, etc.
Advantages of Macros
• The repetitive and routine processes are automated by macros.
• Macros are used to save time and effort.
By default, the macro recording feature is turned off in Calc. Macro recording
can be enabled by selecting Tools > Options > LibreOffice > Advanced. Put the
checkmark on the option “Enable macro recording”.
Notes:
o A Standard library is present by default when a spreadsheet is
created and saved.
o A Library is a collection of modules which in turn is a collection of
macros.
o LibreOffice Macros library is provided by LibreOffice and contains
modules with pre-recorded macros and should not be changed.
o My Macros contain macros that we record or add to the
LibreOffice.
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)