Window.FreezePanes property (Excel)
True if split panes are frozen. Read/write Boolean.
expression A variable that represents a Window object.
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.
This example freezes split panes in the active window in Book1.xls.
Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activate ActiveWindow.FreezePanes = True
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.