Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Tag Property for TreeView Node

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Tag Property for TreeView Node

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





"ExcelMonkey" wrote in message
...
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't you hide a TreeView Node? Jim Luedke Excel Programming 0 September 16th 09 09:12 PM
Treeview - Expand all parents of node michael.beckinsale Excel Programming 3 February 19th 09 06:25 PM
moving treeview node Ernst Excel Programming 0 October 28th 08 06:17 PM
delete a node in treeview mark Excel Programming 1 May 15th 05 04:10 AM
How to add a sub-node of a treeview control JohnDing[_2_] Excel Programming 1 December 20th 04 09:30 AM


All times are GMT +1. The time now is 01:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"