Illegal construction of type instance: <instance name>

You used the keyword New in the declaration of a variable of a user-defined data type or in a statement assigning a value to a variable of a user-defined data type. The keyword New is not allowed in referring to variables of a user-defined type. For example:

Type MyType
   A As Integer
End Type
Dim X As New MyType     ' Illegal

or:

Set X = New MyType     ' Illegal

You use the keyword New to declare or assign a value to an object reference variable, that is, an instance of a class.

Remove New from the declaration or assignment statement.