how to use VBA to attach instance data in openbuildings designer ?

 how to use VBA to attach instance data in openbuildings designer ?I will very appreciate  if can send me any lesson to learn.