NewWorkbook Property

Microsoft Excel Visual Basic

NewWorkbook Property

       

Returns a StartWorking object.

expression.NewWorkbook

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

In this example, Microsoft Excel sets the variable wkbOne to a StartWorking object.

Sub SetStartWorking()

    Dim wkbOne As StartWorking

    ' Create a reference to an instance of the StartWorking object
    Set wkbOne = Application.NewWorkbook

End Sub