Share via


Workbook.VBProject Property

Excel Developer Reference

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.

Visual Basic for Applications
  ThisWorkbook.VBProject.Name = "TestProject"

See Also