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


IVbaApplication.RemoveCodeModule Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Framework)  

IVbaApplication.RemoveCodeModule Method

Removes a code module from the specified VBA project.

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

Product Availability

Available with ArcGIS Desktop.

Description

 

docName specifes the name of the VBA project from which you want to remove the module.

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

 

Remarks

If you want to remove a module from the current document, docName will be "Project".

If you want to remove a module from the Normal template, docName will be "Normal".

If you want to remove a module from a template, docName will be "TemplateProject".

See Also

IVbaApplication Interface