Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.55 KB

Excel.Window.Split.md

File metadata and controls

67 lines (45 loc) · 1.55 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Window.Split property (Excel)
vbaxl10.chm356111
vbaxl10.chm356111
Excel.Window.Split
7fcc304f-8a42-f997-2c32-5a9793683bd5
05/21/2019
medium

Window.Split property (Excel)

True if the window is split. Read/write Boolean.

Syntax

expression.Split

expression A variable that represents a Window object.

Remarks

It's possible for FreezePanes to be True and Split to be False, or vice versa.

This property applies only to worksheets and macro sheets.

Example

This example splits the active window in Book1.xls at cell B2, without freezing panes. This causes the Split property to return True.

Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activate 
With ActiveWindow 
 .SplitColumn = 2 
 .SplitRow = 2 
End With

This example illustrates two ways of removing the split added by the preceding example.

Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activate 
ActiveWindow.Split = False 'method one 
Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activate 
ActiveWindow.SplitColumn = 0 'method two 
ActiveWindow.SplitRow = 0

This example removes the window split. Before you can remove the split, you must set FreezePanes to False to remove frozen panes.

Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activate 
With ActiveWindow 
 .FreezePanes = False 
 .Split = False 
End With

[!includeSupport and feedback]