This document is archived and information here might be outdated.  Recommended version.


IDocument.VBProject Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > ID > IDocument Interface > IDocument.VBProject Property
ArcGIS Developer Help

IDocument.VBProject Property

The VBProject for this document.

[Visual Basic .NET]
Public ReadOnly Property VBProject As Object
[C#]
public object VBProject {get;}

Product Availability

Available with ArcGIS Desktop.

Description

 

The VBProject property returns a reference to the VBA VBProject object associated with the document. Use the VBProject object to set properties for the project, to access the VBComponents collection (all the modules, class modules, forms, etc. in the project), and to access the References collection.

 

Remarks

In the Visual Basic Editor in ArcMap, there can be up to three VBA projects. The document, the base template, and the Normal template all have a VBA project. In the following snapshot of the Project Explorer, the VBA project for the Normal template is called Normal (Normal.mxt). The VBA project for the current document is called Project (MyMap.mxd). This document is based on a template so there is also a VBA project for the template called TemplateProject (MyBase.mxt).

In the Visual Basic Editor in ArcCatalog, there is only one VBA project - Normal (Normal.gxt).

See Also

IDocument Interface