about the only thing you can do is to latebind to object
using CreateObject()
for dll references, no easy way to do it for ocx interfaces
but you would really only want to get into that latebinding
if your references had identical or very very similar interfaces
or else all teh if then else code could make it quite a nightmare