WorkspaceObject.InsertCodeModules

Syntax

WorkspaceObject.InsertCodeModules( [itemList])

Return Value

Object Array

Returns an array of WorkspaceObjects that were added to the workspace.

Purpose

Inserts WorkspaceObjects for the code modules of the specified sequence files.

Remarks

This method traverses the WorkspaceObject hierarchy searching for sequence files. For each sequence file it finds, this method finds all the code modules in the sequence file and adds a WorkspaceObject for each one to the workspace.

Note Code modules are a static representation of the current WorkspaceObject hierarchy. If you change the hierarchy or any elements in the hierarchy, you must delete the code module WorkspaceObjects and call this method again.

Parameters

itemList As Variant

[In] [ Optional ] Specifies an array of WorkspaceObjects that specifies the selected files. If you omit this argument, the method uses this WorkspaceObject.

See Also

Omitting Optional Parameters