I am learning vba class. just while i want to compile below simple code, it always shows a error message saying not correct implements interface. i am stucking at this point, someone can help on this? i tried office 2K10 64bit and 2k16 32bit and both version has some problem when setting implements class.
Option Explicit
Implements cInterestType
Private amount As Double
Public Function cInterestType_CalculateInt() As Double
' <some code>
End Function
Just for another test. i put a simple class code to returning a message, it still get the error, and seems it always stops and high light at "implements" when compiling. I used other computer to do the same code and it shows the same error message. error message
Your class module is also called cInterestType
, and does not need to implement itself.
Ref: