VBProject Property

Microsoft Excel Visual Basic

VBProject Property

       

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"