Home Get the titles of all open windows using VBA
Reply: 1

Get the titles of all open windows using VBA

Figdor
1#
Figdor Published in 2017-12-07 12:02:26Z

I have found a previous thread that shows how to get all open windows and their names using C# : get the titles of all open windows

However, I need to do this in VBA: does anyone know if that's possible?

Thank you so much.

Best regards

Ibo
2#
Ibo Reply to 2017-12-07 17:47:48Z
Sub ListWindows()
    Dim wn As Excel.Window
    For Each wn In Application.Windows
        Debug.Print wn.Caption
    Next wn
End Sub

if you wanted to activate any of them simply use:

 wn.Activate
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.240722 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO