Syntax

expression.NewWorkbook

expression An expression that returns a Application object.

Return Value
NewFile

Example

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

Visual Basic for Applications
 Sub SetStartWorking() Dim wkbOne As NewFile ' Create a reference to an instance of the NewFile object. Set wkbOne = Application.NewWorkbook End Sub
new new workbook NewWorkbook newworkbook property

See also: