Missing argument to constructor for: <class name>
You used a Dim or Set statement to create a new instance of a user-defined class or product class and omitted one or more of the arguments that the class's constructor sub (Sub New) requires. For example:
Class MyClass
Sub New(aString As String, anInt As Integer)
' ...
End Sub
End Class
Dim X As New MyClass("ABC") ' Illegal. MyClass's Sub New expects two
' arguments: a string and then an integer.
or:
Class MyClass
Sub New(aString As String, anInt As Integer)
' ...
End Sub
End Class
Dim X As MyClass
Set X = New MyClass("ABC") ' Illegal. MyClass's Sub New expects two
' arguments: a string and then an integer.
Include all of the required arguments in the appropriate order in the Dim or Set statement.