This example closes the first open or hidden window in Microsoft Excel.
Application.Windows(1).Close
This example names window one in the active workbook "Consolidated Balance Sheet." This name is then used as the index to the Windows collection.
ActiveWorkbook.Windows(1).Caption = "Consolidated Balance Sheet"
ActiveWorkbook.Windows("Consolidated Balance Sheet") _
.ActiveSheet.Calculate