Assigning Macros to Events
From Apache OpenOffice Wiki
Assigning Macros to Events
In OpenOffice, when something happens, we say that an event occurred. 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 tab of the Customize dialog box.