Cannot assign a class value to this member (Error 2070)

An attempt was made to assign the Class property a value that was not an object reference.