Article ID: 186305
Article Last Modified on 1/23/2007
Option Explicit
Sub ReferenceInfo()
Dim strMessage As String
Dim strTitle As String
Dim bytButtons As Byte
Dim refItem As Reference
On Error Resume Next
For Each refItem In References
If refItem.IsBroken Then
strTitle = "MISSING Reference"
strMessage = "Missing Reference:" & vbCrLf & refItem.FullPath
bytButtons = 16 'critical symbol
Else
strTitle = "Displaying References and Their Locations"
strMessage = "Reference: " & refItem.Name & vbCrLf & _
"Location: " & refItem.FullPath
bytButtons = 64 'information symbol
End If
MsgBox prompt:=strMessage, Title:=strTitle, buttons:=bytButtons
Next refItem
End Sub
ReferenceInfoNote that the message box opens for each reference.
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: reference
Keywords: kbhowto kbprogramming KB186305