Passing Treeview node.checked values to Excel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Farkwark
    New Member
    • Sep 2007
    • 1

    Passing Treeview node.checked values to Excel

    I'm using a treeview control with Excel 2003 and VBA.

    Can anyone provide a code snippet to show how to, on a treeview node_checked event, pass the node.checked true/false value back to a specific cell on an Excel worksheet?

    Thanks
  • alan4cast
    New Member
    • Sep 2007
    • 7

    #2
    Something simple like this?

    Code:
    Private Sub TreeView1_NodeCheck(ByVal Node As MSComctlLib.Node)
        Excel.Cells(1, 1) = Node.Checked
    End Sub

    Comment

    Working...