View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
MSP77079[_27_] MSP77079[_27_] is offline
external usenet poster
 
Posts: 1
Default Need some syntax help, please

The only thing I see "wrong" is that the Dim statement should be:

Dim SixthBook as Worksheet

The way that the code is written, all of the workbooks need to be ope
when you start, right?

If all of the books are open when you start, then you might not want
For ... Next loop. Maybe you want to use For Each.

For Each Window In Application.Windows
Window.Activate
Next Windo

--
Message posted from http://www.ExcelForum.com