VBA Classes - How to have a class hold additional classes

后端 未结 3 1295
刺人心
刺人心 2020-12-29 14:29

I have a challenge that I am trying to solve using classes.

I am logging transactions into a class.

Each transaction has the following:

  • Name
3条回答
  •  生来不讨喜
    2020-12-29 14:47

    I haven't done VBA for a while, but I noticed this line:

    Public Property Set BusinessContactAdd(ByRef strName() As Collection) 
    

    I think putting parentheses on a parameter name indicates that it's an array, which yours is not: it's a single instance of a collection.

提交回复
热议问题