I have simply been a manager too long! I am completely incompetent now.
I am trying to setup a TreeView in a spreadsheet. I am simply trying to understand how to create the various nodes. I can't seem to get any examples I have found through Google to work (for me).
My need is an example to establish something like:
Parent1
- Child1
--SubChild1
---SubSubChild1
--SubChild2
-Child2
Parent2
-Child1
-Child2
--SubChild1
---SubSubChild1
---SubSubChild1
...
Most examples I found are form-based VB examples. I simply couldn't get them to work. Tried something like:
(assume there is control tvwMain)
Dim nodItem As Node
Set nodItem = Me.tvwMain.Nodes.Add _
(, , "Top", "Select Item", "food")
Set nodItem = Me.tvwMain.Nodes.Add _
("Top", tvwChild, "BurgerTop", "Burgers", _
"burger")
Set nodItem = Me.tvwMain.Nodes.Add _
("BurgerTop", tvwChild, , "Hamburger", "burger")
This should take me 5, 10 minutes. I have tried, but I have failed. Any help? Thanks.
Bookmarks