Panes Property Example

This example sets a variable for the visible range in the specified pane.

Set vr = Spreadsheet1.ActiveSheet.Panes(1).VisibleRange