You got it!

The only thing I would do is not declare "Dim ... As New". Instead I would do it like this:

[VBA]
Dim elem As htmlBaseElement
Set elem = New htmlBaseElement
[/VBA]