VBProject Property

Applies To

Workbook object.

Description

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

Example

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

ThisWorkbook.VBProject.Name = "TestProject"