_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)
Syntax
'Declaration
ReadOnly Property VBProject As VBProject
Get
'Usage
Dim instance As _Document
Dim value As VBProject
value = instance.VBProject
VBProject VBProject { get; }
Property Value
Type: VBProject
Remarks
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.