Tag Property for TreeView Node

E

ExcelMonkey

Do indivua nodes in TreeViews have a Tag property in VBA? IF so, how you
access it upon adding the node? The code below addes the node.

UserForm1.TreeView1.Nodes.Add relative:="TypeA", _
relationship:=tvwChild, _
Key:= "text1" & ":" & "text2", _
Text:= "text3" & ":" & "text4"

Thanks

EM
 
R

RB Smissaert

Dim oNode As Node

Set oNode = UserForm1.TreeView1.Nodes.Add(relative:="TypeA", _
relationship:=tvwChild, _
Key:= "text1" & ":" & "text2", _
Text:= "text3" & ":" & "text4")

oNode.Tag = "Tag1" 'or whatever, it can be arrays


RBS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top