Open Tools - Macros - Collabora Office Basic - Edit and select Collabora Office Macros container.
This library must be loaded before execution. Place the following statement before the first macro in your module: GlobalScope.BasicLibraries.LoadLibrary("Gimmicks")
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.