Window Iterator

I want to cycle through my Desktop windows and close them all. Help for Windows says to use ‘Windows As Iterable’ but gives no example. Help for ‘Iterable’ also gives no example for cycling through windows. The forums gave no solution either.

So for future users (including me in my forgetfulness), here is the solution:

For Each tempDesktopWindow As DesktopWindow In app.Windows
  tempDesktopWindow.Close
Next tempDesktopWindow
1 Like