axel67
Technical User
- Jan 2, 2007
- 21
Hi,
Anyone has an idea how to loop through all the childs of a selected treeview node, which is not the root node but let's say 3rd level node?
I did below but this just gives the direct children and does not further iterate into the remaining subchilds:
Set nodx = objTree.Nodes("Anode”).Child
For z = 1 To objTree.Nodes("Anode").Children
If nodx.Children = 0 Then
msgbox nodx.Text
End If
Set nodx = nodx.Next
Next
Thanks for any hint!
Axel
Anyone has an idea how to loop through all the childs of a selected treeview node, which is not the root node but let's say 3rd level node?
I did below but this just gives the direct children and does not further iterate into the remaining subchilds:
Set nodx = objTree.Nodes("Anode”).Child
For z = 1 To objTree.Nodes("Anode").Children
If nodx.Children = 0 Then
msgbox nodx.Text
End If
Set nodx = nodx.Next
Next
Thanks for any hint!
Axel