指定的窗口中所有 Pane 对象的集合。
说明
Pane 对象只对于工作表和 ET 4.0 宏表存在。
示例
使用 Panes 属性返回 Panes 集合。下例中,如果当前活动窗口包含若干窗格,则冻结这些窗格。
if(ActiveWindow.Panes.Count > 1) { ActiveWindow.FreezePanes = true }
使用 Panes(
Worksheets.Item("sheet1").Activate() Windows.Item(1).Panes.Item(1).LargeScroll(1)