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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top