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"
Get VB project? VB VB Project VB Project Property VBProject vbproject property

See also: