Roderick_E
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 2,051
I want to use a sheet button to allow the user to split screen between 2 worksheets in same workbook.
I need to know how VBA knows if the workbook is in arranged format. Thanks
I need to know how VBA knows if the workbook is in arranged format. Thanks
Code:
Sub splitit()
ActiveWindow.NewWindow
ActiveWorkbook.Windows.Arrange ArrangeStyle:=xlVertical
[COLOR=#ff0000][B]If ActiveWorkbook.Windows.Arrange = True Then [/B][/COLOR]'this line isn't correct
ActiveWindow.Close
ActiveWindow.WindowState = xlMaximized
End If
End Sub