Office can record commands executed with the keyboard and mouse in Writer and Calc
Open the document for which you want to record a macro.
Choose Tools - Macros - Record Macro.
If Tools - Macros - Record Macro menu item is missing, make sure that macro recording feature is enabled in Tools - Options - Office - Advanced.
You will see the small Recording dialogue box with just one button called Stop Recording.
Press the Escape key to deselect an object, as the macro recorder currently does not record this action by mouse click.
The Macro dialogue box appears, in which you can save and run the macro.
If you want to abort the recording without saving a macro, click the Close button of the Recording dialogue box.
To save the macro, first select the object where you want the macro to be saved in the Save macro in list box.
If you want the macro to be saved into a new library or module, click the New Library or New Module button and enter a name for the library or module.
Enter a name for the new macro in the Macro name text box. Do not use Basic keywords as a name.
Click Save.
The following actions are not recorded: