Quote Originally Posted by tnooc
kleinma, your code has been very helpful to me - I've learned alot. The one problem I had was that the website I was testing with used frames, and I kept getting a null reference error. I finally managed to get it work with the frames by doing the following:

Dim objDoc1 as mshtml.HTMLDocument
Dim objWin1, objWin2 as mshtml.IHTMLWindow2
Dim objFrame1 as mshtml.FramesCollection

objDoc1 = AxWebBrowser1.Document
objWin1 = objDoc1.parentWindow
objFrame1 = objWin1.frames
objWin2 = objFrame1.item(2) 'Was working with 3rd Frame
objWin2.document.all.item("USERID").value = "Text"

Thanks for all the effort you have put into this string - you have helped alot of us.
I know there are issues with frames and manipulating the DOM properly. I haven't really had time to dig in and try to get it working. Do you have a specific URL to reference?