How can I embed this class in an XLAM Add-In.. and make it work?
Dize Class
I've tried doing it, I even get the Dize.xlam in the VBA project inspector:
However, I don't have any intellisense option when typing:
And even if I write
I get the error "User-defined type not defined"
What am I doing wrong?? Any help to get classes in Add-Ins going?
Dize Class
Code:
Private pSides As IntegerPublic Property Let sides(value As Integer)
pSides = value
End Property
Public Property Get sides() As Integer
sides = pSides
End Property
Public Function throw() As Integer
throw = Int(Rnd() * pSides) + 1
End Function
I've tried doing it, I even get the Dize.xlam in the VBA project inspector:
However, I don't have any intellisense option when typing:
Code:
Dim myDice as D... (Dize does not appear in the list)
And even if I write
Code:
Dim myDice as Dize
I get the error "User-defined type not defined"
What am I doing wrong?? Any help to get classes in Add-Ins going?