Abra Ferramentas - Macros - LibreOffice Basic - Editar e seleccione Macros do LibreOffice.
This library must be loaded before execution. Execute the following statement before running any macro that uses this library: GlobalScope.BasicLibraries.LoadLibrary("Depot")