> I am doing DHTML programming and I need to convert
> IHTMLElement to IHTMLDOMNode so I can use the appendChild
> method of IHTMLDOMNode. How can I convert IHTMLElement to
> IHTMLDOMNode using Visual Basic?
If the object implements both interfaces a simple Set will do it:
Dim oElement As IHTMLElement
Dim oNode As IHTMLDOMNode
Set oNode = oElement

Signature
Eduardo A. Morcillo [MS MVP VB]
http://www.mvps.org/emorcillo