Ajuda del LibreOffice 26.2
Specifies that the module is a class module that contains members, properties, procedures and functions.
This statement must be used jointly with Option Compatible statement or Option VBASupport 1, the former is enabling VBA compatibility mode, while the latter is enforcing VBA support on top of compatibility.
Option ClassModule
Option Compatible
Option ClassModule
' Optional members go here
Private Sub Class_Initialize()
' El codi de construcció opcional va aquí
End Sub ' Constructor
Private Sub Class_Terminate()
' El codi de destrucció opcional va aquí
End Sub ' Destructor
' Properties go here.
' Procedures & functions go here.