Hi,
I am using MS Excel and Im trying to write a macro(VBA) that would use classes and implement an interface. I have no idea what im doing wrong but i keeping getting an error prompting me that the Object module needs to implement a function that the interface has declared. But strangely the function is already implemented. My code is a follows:

clsInterface
VB Code:
  1. Public Property Get LibraryItem_CheckedOut() As Boolean
  2. End Property

clsDerived
VB Code:
  1. Implements clsInterface
  2.  
  3. Public Sub Class_Initialize()
  4.     MsgBox "in derived"
  5. End Sub
  6.  
  7. Public Property Get LibraryItem_CheckedOut() As Boolean
  8.     MsgBox "in derived"
  9. End Property

And finally, ThisWorkbook
VB Code:
  1. Dim cls As clsInterface
  2.     Dim derived As clsDerived
  3.    
  4.     Set cls = New clsInterface
  5.     Set derived = new clsDerived
  6.     Set cls = derived

Ive wrecked my brains of this for hours and have not figured out why i get the error. Again, the error is: "Object module needs to implement 'LibraryItem_CheckedOut' for interface clsInterface

Thanks a million
raven