Use the strFunctionCode as the key value when adding nodes to the treeview. Then, attempt to add a new node to the treeview while trapping for errors that may occur. If an error is raised during the attempt to add a node, then you can be pretty sure one already exists with the same strFunctionCode:
On Error Resume Next
Set oNode = oTreeView.Nodes.Add('set whatever properties here)
If err.Number <> 0 Then
'An error was raised - node probably already exists
Else
'No error - node was created fine
End If
On Error Goto ErrHandler
Hope that helped. -Chris Didion
Matrix Automation, MCP