“TypeOf…Is Child” from Parent causes broken Excel file

前端 未结 2 875
再見小時候
再見小時候 2021-01-19 02:47

I\'ve been tracking down this issue for several days, so I thought I\'d post it here to help others with the same problem, as well as learn more about the cause. I\'ve simpl

2条回答
  •  我在风中等你
    2021-01-19 03:25

    VBA does not support class polymorphism.

    I think you are misunderstanding the purpose of the keyword Implements.

    It's used when you want a class to implement an Interface - not another class ( well, at least not literally because an Interface in VBA is another class module object )

    See this answer for better understanding of the Implements keyword in VBA

    Also refer to this for info about VBA polymorphism

提交回复
热议问题