Fully Populate Tree View Control

S

SEAN DI''''ANNO

Is there a simple method of being able to loop through all of the nodes in a
tree view and select as you can with a list box? I have tries searching for
the code on google and can not find any help
 
S

SEAN DI''''ANNO

Thank you for your reply but I think you mis understand what I mean. My tree
view is already popluated with countries. I just a need a button which will
select all of the countries at once rather than have oto tick each country
indiviually. Is this possible?
 
R

r

Public Sub Espandi_Ragruppa_tutto(ByVal bVal As Boolean)
Dim N As Node
'______________________________________________
'¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
'Di Roberto Mensa nick r
'______________________________________________
'¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
'espande o raggruppa tutti i nodi della
'TreeView
For Each N In UserForm1.TreeView1.Nodes
N.Expanded = bVal
Next
End Sub

regards
r

Il mio ultimo lavoro ...
http://excelvba.altervista.org/blog/index.php/Excel-VBA/UsedRange-eccezioni-e-alternative.html
 

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