WorkbookOpen Event [Excel 2003 VBA Language Reference]
Occurs when a workbook is opened.
Private Subobject**_WorkbookOpen(ByValWbAs Workbook)**
object An object of type Application declared with events in a class module. For more information, see Using Events with the Application Object .
Wb The workbook.
Example
This example arranges all open windows when a workbook is opened.
Private Sub App_WorkbookOpen(ByVal Wb As Workbook)
Application.Windows.Arrange xlArrangeStyleTiled
End Sub
Applies to | Application Object