The Add method of the OlapTreeNodes collection adds a new OlapTreeNode object to the collection. This method returns an object of type OlapTreeNode.
Set vnt = object.Add(Caption As String, IconClosed As Integer, [IconOpen As Integer])
vnt
An instance of OlapTreeNode that receives the instance of the new member.
object
An instance of the OlapTreeNodes collection.
Caption
The string value to be displayed for the tree node.
IconClosed
The index of the icon resource displayed when the tree node is collapsed.
IconOpen
(Optional)The index of the icon resource displayed when the tree node is expanded.
The Add method is used to populate the OlapTreeNodes collection with child nodes that are displayed in the tree. Call this method for each OlapTreeNode object you want to add.