Workbook.VBProject Property (Excel)

Returns a VBProject object that represents the Visual Basic project in the specified workbook. Read-only.

Syntax

expression .VBProject

expression A variable that represents a Workbook object.

Example

This example changes the name of the Visual Basic project in the workbook.

ThisWorkbook.VBProject.Name = "TestProject"

See Also

Concepts

Workbook Object

Workbook Object Members