so u just have the single IE declare....
the webbrowser control is IE so it should work the same
tested and works:
VB Code:
Dim WithEvents IE As InternetExplorer Private Sub Form_Load() Set IE = New InternetExplorer IE.Navigate "www.google.com" End Sub Private Sub IE_DocumentComplete(ByVal pDisp As Object, URL As Variant) If (pDisp Is IE.Application) Then IE.Document.Forms(0).q.Value = "hello" 'q is the real NAME from the source 'tested..works fine End If End Sub




Reply With Quote