LibreOffice 25.2 Help
Specifies the macro to run when you click an image, frame, or an OLE object.
Lists the events that can trigger a macro. Only the events that are relevant to the selected object are listed.
The following table lists the object types and the events that can trigger a macro:
| Notikums | Notikuma trigeris | OLE objekts | Attēls | Ietvars | Automātiskais teksts | Attēlkartes laukums | Hipersaite | 
|---|---|---|---|---|---|---|---|
| Klikšķis uz objekta | object is selected | ✓ | ✓ | ✓ | |||
| Pele virs objekta | mouse pointer moves over the object | ✓ | ✓ | ✓ | ✓ | ✓ | |
| Atver hipersaiti | hyperlink that is assigned to the object is clicked | ✓ | ✓ | ✓ | ✓ | ||
| Pele pamet objektu | mouse pointer moves off the object | ✓ | ✓ | ✓ | ✓ | ✓ | |
| Attēls ir veiksmīgi ielādēts | image is loaded successfully | ✓ | |||||
| Attēla ielādēšana ir apturēta | loading of the image is terminated by the user (for example, when downloading) | ✓ | |||||
| Nevarēja ielādēt attēlu | image is not successfully loaded | ✓ | |||||
| Alfa rakstzīmju ievade | text is inputted | ✓ | |||||
| Ne-alfa rakstzīmju ievade | Nonprinting characters, such as tabs and line breaks, are entered | ✓ | |||||
| Mainīt ietvara izmēru | frame is resized | ✓ | |||||
| Pārvietot ietvaru | frame is moved | ✓ | |||||
| Pirms automātiskā teksta ievietošanas | before AutoText is inserted | ✓ | |||||
| Pēc automātiskā teksta ievietošanas | after AutoText is inserted | ✓ | 
For events that are linked to controls in forms, see Control properties or Form properties.
Specify the macro that executes when the selected event occurs.
Frames allow you to link certain events to a function that then decides if the event is handled by LibreOffice Writer or by the function. See the LibreOffice Basic Help for more information.
Lists the LibreOffice program and any open LibreOffice document. Within this list, select the location where you want to pick the macro from.
Lists the available macros. Select the macro that you want to assign to the selected event, and then click Assign.
Assigns the selected macro to the selected event.