Open Tools - Macros - LibreOffice Basic - Edit and select LibreOffice Macros container.
This library must be loaded before execution. Place the following statement before the first macro in your module: GlobalScope.BasicLibraries.LoadLibrary("FormWizard")