Sub IsThisWorkbookOpen(LookingForThisWorkbook As String)
Dim OfTheWorkbooks As Workbook
Dim Hits As Integer
For Each OfTheWorkbooks In Application.Workbooks
If InStr(1, "LookingForThisWorkbook", OfTheWorkbooks.Name, vbTextCompare) = 1 Then
MsgBox "The " & LookingForThisWorkbook & " workbook was found", , "Found It!"
Hits = Hits + 1
End If
Next
If Hits = 0 Then
MsgBox LookingForThisWorkbook & " was not found", , "Where is It?"
End If
End Sub