Panes Object
A collection of all the Pane objects shown in the specified window.
Remarks
Pane objects exist only for worksheets and Microsoft Excel 4.0 macro sheets.
Example
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.
| Visual Basic for Applications |
|---|
|
Use Panes(), where is the pane index number, to return a single Paneobject. The following example scrolls through the upper-left pane of the window in which Sheet1 is displayed.
| Visual Basic for Applications |
|---|
|
See also:
| index | index |