Chalange: Creating recursive tree from Excel List

L

lenhardturs

Fellow Programming Experts,

:confused: Can anyone provide a helping hand concerning the followin
issue?

I have a Excel representation of a recursive tree that looks lik
that:

Column A.............Column B
*Parent................Child*
Grand Father........Father
Father..................Son1
Father..................Son2
Father..................Son3
Son1....................Grand Child1.1
Son1....................Grand Child1.2
Son2....................Grand Child2.1
Son2....................Grand Child2.2
Son2....................Grand Child2.3
Son3....................Grand Child3.1
… and so on.

I need to load that data into a virtual tree in memory using a clas
module that has three properties:

Current Node Name
First Child
Next Sibling

I know that the solution is a recursive function which instances th
class module several times. I have implemented this frequently i
various programming languages, however I am relatively new to VBA an
can not figure out how to do it.

Could anyone provide some sample lines of code I could start from
describing:

a) the class module (I have never used class modules before) and
b) the function that loads the data into the tree?

This would be fantastic!!! Any hint is very much appreciated.

ur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top