SailePaty
03-30-2006, 07:55 PM
Hi,
I have a Treeview control and want the Root Node.Checked property be set in base a cell value.
I’m using the below code that sets the correct property to the node. However, as soon de procedure finished the Node.Checked property takes the status it got when the checked event occurred.
Private Sub TreeView1_NodeCheck(ByVal Node As MSComctlLib.Node)
If Node.Index <> 1 Then Exit Sub
If Range("Root_Included").Value = "No" Then Node.Checked = False
If Range("Root_Included").Value = "Yes" Then Node.Checked = True
End Sub
Any ideas how I can keep the property set in the procedure?
Thanks in advance.
I have a Treeview control and want the Root Node.Checked property be set in base a cell value.
I’m using the below code that sets the correct property to the node. However, as soon de procedure finished the Node.Checked property takes the status it got when the checked event occurred.
Private Sub TreeView1_NodeCheck(ByVal Node As MSComctlLib.Node)
If Node.Index <> 1 Then Exit Sub
If Range("Root_Included").Value = "No" Then Node.Checked = False
If Range("Root_Included").Value = "Yes" Then Node.Checked = True
End Sub
Any ideas how I can keep the property set in the procedure?
Thanks in advance.