Export (0) Print
Expand All

Application.NewWorkbook Event

Office 2007
Occurs when a new workbook is created.

Syntax

expression.NewWorkbook(Wb)

expression   An expression that returns a Application object.

Parameters

NameRequired/OptionalData TypeDescription
WbRequiredWorkbookThe new workbook.

Example

This example arranges open windows when a new workbook is created.

Visual Basic for Applications
Private Sub App_NewWorkbook(ByVal Wb As Workbook)
    Application.Windows.Arrange xlArrangeStyleTiled
End Sub



Community Additions

ADD
Show:
© 2014 Microsoft