Panes Object (Excel)
A collection of all the Pane objects shown in the specified window.
Use the Panes property to return the Panes collection. The following example freezes panes in the active window if the window contains more than one pane.
Use Panes(index), where index is the pane index number, to return a single Pane object. The following example scrolls through the upper-left pane of the window in which Sheet1 is displayed.