ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Which windows are open? (https://www.excelbanter.com/excel-programming/306077-windows-open.html)

nath

Which windows are open?
 
Is there a way of listing all open windows names in vba?

TIA

Nath.

Chip Pearson

Which windows are open?
 
Nath,

Try something like

Dim Wnd As Window
For Each Wnd In Application.Windows
Debug.Print Wnd.Caption
Next Wnd



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"nath" wrote in message
...
Is there a way of listing all open windows names in vba?

TIA

Nath.




Bob Phillips[_6_]

Which windows are open?
 
Dim wnd

For Each wnd In Windows
Debug.Print wnd.Caption
Next wnd


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"nath" wrote in message
...
Is there a way of listing all open windows names in vba?

TIA

Nath.





All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com