VBProject Property

Microsoft Excel Visual Basic

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"