ActivePane 属性

       

返回 Pane 对象,该对象代表指定窗口的活动窗格。只读。

示例

本示例拆分活动窗口,然后激活活动窗格的下一个窗格。

With ActiveDocument.ActiveWindow
    .Split = True
    .ActivePane.Next.Activate
    MsgBox "Pane " & .ActivePane.Index & " is active"
End With

本示例激活第一个窗口,并显示活动窗格中的制表符。

With Application.Windows(1)
    .Activate
    .ActivePane.View.ShowTabs = True
End With