Workbook.VBProject Property (Excel)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .VBProject

expression A variable that represents a Workbook object.

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

ThisWorkbook.VBProject.Name = "TestProject"