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"

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.