Setting a Reference Using Code

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?
 
P

Paul Overway

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)
 
Top