XLL+ Class Library (7.0)


Equivalent to choosing the Split command from the Window menu or to dragging the split bar in the active window's scroll bar.

static int Split(
   COL12 col_split,
   RW12 row_split



specifies where to split the window vertically and is measured in columns from the left of the window.


specifies where to split the window horizontally and is measured in rows from the top of the window.

Return Value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.


If an argument is 0 and there is a split in that direction, the split is removed.

See the Microsoft Excel on-line Help for full details about this function.


Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods | CXlMacros::FreezePanes | CXlMacros::UnfreezePanes