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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code to check for Reference libraries installed

Status
Not open for further replies.

sellert

Programmer
Nov 18, 2004
36
US
Is there a way with on-open to check for the reference libraries that is installed on a machine and either, branching to different code suitable for the libraries installed or, displaying a message letting the user know they are missing a required library and to contact IS&T?

Thanks,
SELLERT

If I'm not learning I must be coasting. If I am coasting I must be going down hill.
 
A starting point:
Code:
Sub ReferenceInfo()
Dim strMessage As String
Dim refItem As Reference
On Error Resume Next
For Each refItem In References
  If refItem.IsBroken Then
    strMessage = "Missing Reference:" & vbCrLf & refItem.FullPath
  Else
    strMessage = "Reference: " & refItem.Name & vbCrLf _
                 & "Location: " & refItem.FullPath
  End If
  Debug.Print strMessage
Next
End Sub

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top