Can I control Internet Explorer using Excel VBA?
Hi Johnl,
Yes. See this code:
Dim IEObj As Object
Sub Test()
OpenIE "http://example.microsoft.com"
End Sub
Public Sub OpenIE(vURL As String)
On Error GoTo ErrorHandler
IEObj.Visible = True
With IEObj
.Visible = True
.Navigate vURL
Do Until Not .Busy
DoEvents
Loop
End With
Exit Sub
ErrorHandler:
Set IEObj = Nothing
Set IEObj = CreateObject("InternetExplorer.Application")
Resume Next
End Sub
HTH
---
Orlando Magalhães Filho
(So that you get best and rapid solution and all may benefit from the
discussion, please reply within the newsgroup, not in email)
"JohnI" escreveu na mensagem
...
Hello there,
I'm fairly good with writing Excel, Word, & Access VBA.
Is there a way to control IE using VBA code?
Any info will be most welcome.
Thanks in advance (TIA),
JohnI
|