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


IVbaApplication.CreateCodeModule Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IV > IVbaApplication Interface > IVbaApplication.CreateCodeModule Method
ArcGIS Developer Help

IVbaApplication.CreateCodeModule Method

Creates a code module in the specified VBA project.

[Visual Basic .NET]
Public Sub CreateCodeModule ( _
    ByVal docName As String, _
    ByVal moduleName As String _
)
[C#]
public void CreateCodeModule (
    string docName,
    string moduleName
);

Product Availability

Available with ArcGIS Desktop.

Description

 

docName specifes the name of the VBA project in which you want to create the module.

moduleName specifes the name of the module that you want to create.

 

Remarks

If you want to create the module in the current document, docName will be "Project".

If you want to create the module in the Normal template, docName will be "Normal".

If you want to create the module in a template, docName will be "TemplateProject".

See Also

IVbaApplication Interface