Setting a Reference Using Code

  • Thread starter Thread starter Jim Pockmire
  • Start date Start date
J

Jim Pockmire

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?
 
In an MDB, yes. Use References.AddFromFile or References.AddFromGUID. See
help for more details. If your app is compiled as an MDE, no. You'll need
to use late binding (see help for CreateObject or GetObject)
 
Back
Top