title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Application.WorkbookOpen event (Excel) |
vbaxl10.chm504081 |
|
|
37a5b55d-7968-29a2-3f87-edc3334c8ced |
04/05/2019 |
medium |
Occurs when a workbook is opened.
expression.WorkbookOpen (Wb)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Wb | Required | Workbook | The workbook. |
Nothing
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
[!includeSupport and feedback]