You made a reference to a class (with a New or Set statement) without first defining the class.
To correct this error
Make sure you define the class before you reference it.
Set Statement