That's the way polymorphism works. If you declare it as iCanvasObject
then that is what it is, and thus, it doesn't have any of the members of ctable
that don't come from iCanvasObject
, unless you cast it as a cTable
.
This has nothing to do with the fact that you're using VBA.