It is worthwhile to go through these documents

BET: Microsoft VBA Datatypes - DefType

Deftype Statements

Trip Planner, Deftypes and Options