In OOo, when something happens, we say that an event occured. For example, a document was opened, a key was pressed, or the mouse moved. You can associate a macro with an event, so the macro is run when the event occurs. For example, a common use is to assign the “open document” event to run a macro that performs certain setup tasks for the document.
To associate a macro with an event, use the Events page of the Customize dialog. For more information, see
Chapter 13 (Getting Started with Macros) in the Getting Started guide.