Search notes:

VB Editor Object Model: Windows

Iterating over the windows collection

option explicit

sub iterateVBEditorWindows()

    dim wndType as string

    dim wnd as vbide.window
    for each wnd in application.vbe.windows

        if      wnd.type = vbext_wt_codeWindow     then wndType = "code"       _
        else if wnd.type = vbext_wt_projectWindow  then wndType = "project"    _
        else if wnd.type = vbext_wt_immediate      then wndType = "immediate"  _
        else if wnd.type = vbext_wt_locals         then wndType = "locals"     _
        else if wnd.type = vbext_wt_watch          then wndType = "watch"      _
        else if wnd.type = vbext_wt_propertyWindow then wndType = "property"   _
        else if wnd.type = vbext_wt_toolBox        then wndType = "toolBox"    _
        else                                            wndType =  wnd.type

        debug.print wnd.caption & " (" & wndType & ") @ " & wnd.top & "," & wnd.left & " " & wnd.width & "x" & wnd.height
      '
      ' wnd.windowState is one of normal, maximize, minimize
      '

    next wnd

end sub

See also

The Window object.
Microsoft Office: VB Editor Object Model

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1759398028, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Office/Visual-Basic-Editor/Object-Model/Windows/index(66): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78