WorkbookExists?
The following function returns true or false depending on whether the name of the workbook passed to it is open or not in the current application.
Function BookExists(strname As String) As Boolean On Error Resume Next Dim wb As workbook Set wb=workbooks(strname) BookExists = Not wb Is Nothing End Function