Sure, you are right and your work is successful (as always) and a good sample for browsegfilatov wrote: I've considered the generated code as good example of Browse control handling.
I was just amazed at your patience, you have rewrite entire program from scratch
By the way, I'm afraid the original author will not like this:
first their programming secrets unveiled, and second your program is too long : 500+ lines
Happy HMG'ing