Ask Your Question

Revision history [back]

With your database open from the Menu - Tools > Macros > Organise Macros > LibreOffice Basic. Your database name will be at the bottom of the list on the left hand side. Click on the database name and select New from the right hand buttons. A popup will open with Title "New Module" with default name "Module1" - click OK. The Basic Editor will open with a new blank macro
Sub Main
End Sub

If you enter between these lines as below

Sum Main
MsgBox "You pressed Me!"
End Sub

Attach this Macro to the button.
To Edit or add new Macros use the menu route to the document Macros.