I have a VBA project in excel which hides the workbook in the background and only shows the userform, it works fine however, causes problems when other workbooks are open as it
Public Sub openWorkbooks()
Dim wb As Excel.Workbook
For Each wb In Excel.Workbooks
' Do whatever you need to do here
' This prints the workbook name to the inmediate window
Debug.Print wb.Name
Next wb
End Sub