I'm having a bit of trouble recognizing the differences between Windows and Workbooks. If I have multiple workbooks open each one will have its own window as far as I can tell, so the following two for loops are rather similar
But how do I make these two concepts meet? Like how can I display the names of all Visible Open Workbooks, since Visible is a property of the Window and Name is a property of the Workbook.
Thanks,
~Gold Fish
Code:
Dim Win As Window
For Each Win In Windows
Debug.Print Win.Visible
Next Win
Dim Wkbook As Workbook
For Each Wkbook In Workbooks
Debug.Print Wkbook.Name
Next Wkbook
But how do I make these two concepts meet? Like how can I display the names of all Visible Open Workbooks, since Visible is a property of the Window and Name is a property of the Workbook.
Thanks,
~Gold Fish