Window.Panes (Excel)
Returns a Panes collection that represents all the panes in the specified window.
This property is available for a window only if the window's Split property can be set to True.
Dim pnsPanes As Panes
Set pnsPanes = ActiveWindow.Panes