Contido

# Recording a Macro

LibreOffice can record commands executed with the keyboard and mouse in Writer and Calc

1. Abra o documento para o que desexa gravar unha macro.

2. Escolla Ferramentas - Macros - Gravar macro.

   If Tools - Macros - Record Macro menu item is missing, make sure that macro recording feature is enabled in LibreOffice - Preferences Tools - Options - LibreOffice - Advanced.

   Pode ver a caixa de diálogo Gravar con só un botón: Parar gravación.

3. Execute as accións que desexe gravar no documento.

   Prema Esc para desfacer a selección do obxecto, pois o gravador de macros non rexistra esa acción a premendo o rato.

4. Prema Parar gravación.

   Ábrese a caixa de diálogo Macros, onde pode gardar e executar a macro.

   Se desexa deter a gravación sen gardar a macro, prema o botón Pechar na caixa de diálogo Gravar.

5. Para gardar a macro ten que escoller o obxecto onde desexa gardar a macro na caixa de lista Gardar macro en.

6. Se desexa gardar a macro nunha nova biblioteca ou módulo, prema o botón Nova biblioteca ou Novo módulo e introduza o nome da biblioteca ou módulo.

7. Introduza o nome da nova macro na caixa de texto Nome de macro.

8. Prema en Gardar.

## Limitations of the macro recorder

The following actions are not recorded:

- Opening of windows is not recorded.

- Actions carried out in another window than where the recorder was started are not recorded.

- Window switching is not recorded.

- Actions that are not related to the document contents are not recorded. 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.

Temas relacionados

Macro