当激活某个应用程序窗口或任意文档窗口时发生此事件。
Private Sub application_WindowActivate(ByVal Pres As Presentation, ByVal Wn As DocumentWindow)
application Application 类型的对象,在类模块中声明,自身具有事件。有关使用 Application 对象的事件的详细信息,请参阅使用 Application 对象的事件。
Pres 在活动窗口中显示的演示文稿。
Wn 已激活的文档窗口。
本示例在幻灯片浏览视图中打开每一个已激活的演示文稿。
Private Sub App_WindowActivate _ (ByVal Pres As Presentation, ByVal Wn As DocumentWindow)
Wn.ViewType = ppViewSlideSorter
End Sub