ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to add a sub-node of a treeview control (https://www.excelbanter.com/excel-programming/319286-how-add-sub-node-treeview-control.html)

JohnDing[_2_]

How to add a sub-node of a treeview control
 
Dear all,

I can use 'Set nd=TreeView1.Nodes.add' to add a root node
but I can't(do not know how to do) add a sub-node the
certain node, could someone kindly help?

Thank,
John

Rob van Gelder[_4_]

How to add a sub-node of a treeview control
 
Of the arguments for Nodes.Add:
Relative : is the node for which you are creating a subnode, ie your root
node.
Relationship : tvwChild

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"JohnDing" wrote in message
...
Dear all,

I can use 'Set nd=TreeView1.Nodes.add' to add a root node
but I can't(do not know how to do) add a sub-node the
certain node, could someone kindly help?

Thank,
John





All times are GMT +1. The time now is 10:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com