_Document.VBProject 属性

定义

返回的 VBProject 对象所指定的模板或文档。Returns the VBProject object for the specified template or document.

public:
 property Microsoft::Vbe::Interop::VBProject ^ VBProject { Microsoft::Vbe::Interop::VBProject ^ get(); };
public Microsoft.Vbe.Interop.VBProject VBProject { get; }
member this.VBProject : Microsoft.Vbe.Interop.VBProject
Public ReadOnly Property VBProject As VBProject

属性值

Microsoft.Vbe.Interop.VBProject

注解

使用该属性可访问代码模块和用户窗体。Use this property to gain access to code modules and user forms.

若要在对象浏览器中查看VBProject对象,必须在 Visual Basic 编辑器中的 "引用" 对话框("工具" 菜单)中选中 "Microsoft Visual Basic For Applications 扩展" 复选框。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.

适用于