תוכן

# Recording a Macro

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

1. Open the document for which you want to record a macro.

2. Choose \<emph\>Tools - Macros - Record Macro\</emph\>.

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

   You see the small \<emph\>Recording\</emph\> dialog with just one button called \<emph\>Stop Recording\</emph\>.

3. Perform the actions you want to be recorded in the document.

   Press the Escape key to deselect an object, as the macro recorder currently does not record this action by mouse click.

4. Click \<emph\>Stop Recording\</emph\>.

   The \<emph\>Macro\</emph\> dialog appears, in which you can save and run the macro.

   If you want to abort the recording without saving a macro, click the \<emph\>Close\</emph\> button of the \<emph\>Recording\</emph\> dialog.

5. To save the macro, first select the object where you want the macro to be saved in the \<emph\>Save macro in\</emph\> list box.

6. If you want the macro to be saved into a new library or module, click the \<emph\>New Library \</emph\>or \<emph\>New Module \</emph\>button and enter a name for the library or module.

7. Enter a name for the new macro in the \<emph\>Macro name\</emph\> text box. Do not use Basic keywords as a name.

8. Click \<emph\>Save\</emph\>.

## 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.

נושאים קשורים

Macro

נא לתמוך בנו!