One way to set a reference is to open the VB Editor and then go to tools, references. Is it possible to set a reference using code?