D
Dale Fye
I have a command button on a form that contains a treeview
control. When I click the command button, I want to
iterate thru the treeview and identify all of the nodes
and leaves that are checked.
I've tried the following but get a "Type mismatch" error
on the line indicate with <<
Dim tv as MSComctllib.treeview
Dim nd as Node
set X as Me.MyTree <<
For each nd in X.nodes
if nd.checked then debug.print nd.key
next
control. When I click the command button, I want to
iterate thru the treeview and identify all of the nodes
and leaves that are checked.
I've tried the following but get a "Type mismatch" error
on the line indicate with <<
Dim tv as MSComctllib.treeview
Dim nd as Node
set X as Me.MyTree <<
For each nd in X.nodes
if nd.checked then debug.print nd.key
next