FreezePanes Property

Microsoft Office Web Components Visual Basic

expression.FreezePanes

expression    Required. An expression that returns a Window object.

Example

This example creates panes in the active worksheet.

Spreadsheet1.ActiveWindow.FreezePanes = True