Window.ActivePane (Excel)

Returns a Pane object that represents the active pane in the window.

This property can be used only on worksheets and macro sheets. This property returns a Pane object. You must use the Index property to obtain the index of the active pane.


Dim panActivePane As Pane
Set panActivePane = ActiveWindow.ActivePane