I created a class module Rect:
Public top As Single
Public left As Single
Public bottom As Single
Public right As Single
Public Sub Class_Initialize()
    Me.top = 0
    Me.bottom = 0
    Me.left = 0
    Me.right = 0
End Sub
And a factory function to create Rect objects:
Private Function n() As Rect
    Dim r As New Rect
    n = r
End Function
When I call function n() I got runtime error '91'. I don't know what is wrong...
 
     
    