Open Tools - Macros - LibreOffice Basic - Edit and select Application Macros container.
This library must be loaded before execution. Execute the following statement before running any macro that uses this library: GlobalScope.BasicLibraries.LoadLibrary("Depot")
This help page needs further work for correctness and completion. Please join the LibreOffice project and help us out to write the missing information. Visit our web page on writing Help contents.