Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBV Reference list

Status
Not open for further replies.

vbakan

MIS
Dec 6, 2006
24
GB
I am using some Excel VBA programs. How do I get the reference list programitically (Tools -> references)

Please let me know if any one got an idea.
 
If you reference the Microsoft Visual Basic for Applications Extensibility 5.x library then you have acces to the VBE.
A starting point:
For Each r In Application.VBE.VBProjects(1).References
Debug.Print r.Name, r.IsBroken, r.FullPath
Next


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks a lot I only need the references which are checked
 
My suggestion print the checked references only.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I am not a VB Expert please tell me khow to do it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top