Set is for the assignment of objects, a user defined type is treated like a regular variable so use = to assign.
Also (confusingly); Dim Data, refData As Inherit only declares refData of type Inherit to declare them both on one line you must; Dim Data As Inherit, refData As Inherit