This documentation is archived and is not being maintained.

_Document.VBProject Property

Returns the VBProject object for the specified template or document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

VBProject VBProject { get; }

Property Value

Type: VBProject

Use this property to gain access to code modules and user forms.

To view the VBProject object in the object browser, you must select the Microsoft Visual Basic for Applications Extensibility check box in the References dialog box (Tools menu) in the Visual Basic Editor.

Show: