NewWorkbook Event

         Example         Applies To

Occurs when a new workbook is created.

Syntax

Private Sub object_NewWorkbook(ByVal Wb As 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 new workbook.