Hello all,

I get a type mismatch error when passing a node between 2 subs.
It might be a simple problem, but I don't get it.

Here's my code :

Private Sub tvwTree_Click()
Dim selectedNode As node
Set selectedNode = tvwTree.SelectedItem

GetQuestions (selectedNode)
End Sub


Private Sub GetQuestions(selectedNode As node)
' Perform some action here
End Sub


Any help is welcome.

Thanks in advance