Choose LibreOffice - Preferences - Load/Save - VBA Properties and mark the Executable code checkbox. Then load or open your document.
The VBA (Visual Basic for Applications) code will be loaded ready to be executed. If this checkbox is not checked, the VBA code will be commented out so it can be inspected, but will not run.