2) Copiate la macro sottostante ed incollatela nella IDE Basic di LibreOffice, quindi salvate con Ctrl+S.