WorkbookNewSheet Event

See Also         Example         Applies To

Occurs when a new sheet is created in any open workbook.

Syntax

Private Sub object_WorkbookNewSheet(ByVal Wb As Workbook, ByVal Sh As Object)

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.

Sh   The new sheet.