XLL+ Class Library (6.3)

CXlMacros::FreezePanes

Equivalent to choosing the Freeze Panes command from the Window menu or clicking the Freeze Panes button.

static int FreezePanes(
   COL12 col_split,
   RW12 row_split
);

Parameters

col_split

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

row_split

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.

Remarks

Splits the active window into panes, creates frozen panes, or freezes existing panes. Use FreezePanes to keep row or column titles on the screen while scrolling to other parts of the sheet.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods | CXlMacros::UnfreezePanes | CXlMacros::Split