G Guest Oct 19, 2007 #1 When opening and excel spreadsheet, it opens the file in multiple window with each one being in a different view. How do you stop this?
When opening and excel spreadsheet, it opens the file in multiple window with each one being in a different view. How do you stop this?
J JE McGimpsey Oct 19, 2007 #2 One way: Put this in the ThisWorkbook code module: Private Sub Workbook_Open() Dim i As Long With Me.Windows For i = .Count To 2 Step -1 .Item(i).Close Next i End With End Sub If you're unfamiliar with macros, see http://www.mvps.org/dmcritchie/excel/getstarted.htm
One way: Put this in the ThisWorkbook code module: Private Sub Workbook_Open() Dim i As Long With Me.Windows For i = .Count To 2 Step -1 .Item(i).Close Next i End With End Sub If you're unfamiliar with macros, see http://www.mvps.org/dmcritchie/excel/getstarted.htm
G Guest Oct 19, 2007 #3 This macro did close the other open windows but can you tell me what caused this to happen from the begininng?
This macro did close the other open windows but can you tell me what caused this to happen from the begininng?
G Guest Oct 19, 2007 #5 Thank you! JE McGimpsey said: Choosing Window/New Window from the menu. Click to expand...