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