FWIW, I tried it in LibreOffice v. 184.108.40.206, but it fails with an error
"BASIC syntax error. Symbol expected" at this code (among several):
Rem Attribute VBA_ModuleType=VBAModule
Option VBASupport 1
Type file <=== error at this line
name As String
size As Long
and as far as I can tell, the syntax is right. Needless to say, I'm not much of an OO Basic or VBA programmer.