Excel VBA TreeView Looping Through Child Nodes -
Excel VBA TreeView Looping Through Child Nodes -
i using excel treeview object. have no problem looping through parent nodes, can't work kid nodes.
here's how doing parent nodes. works fine.
total_rows =10 = 1 (total_row - 2) 'subtract 2 headers if treeview1.nodes(i).checked = true range("nodes_checked")(i + 2) = "x" end if next here how doing kid nodes. appears check first kid node, not nodes.
for = 1 (2) 'subtract 2 headers if treeview1.nodes(i).child.checked = true msgbox "the kid node checked" end if next excel excel-vba treeview
Comments
Post a Comment