|
-
Aug 22nd, 2000, 03:24 AM
#1
Thread Starter
New Member
I need to use GetObject so that I can detect the current IE page which is already open by the user, save the page and go back to the previous page, put password etc. But my prog can't detect IE instance even though it is running(alreadt open).
The key question here is how do I detect IE instances using GetObject? Thank you.
Below is a little bit detail of my code.
Sub DetectIE()
Dim MyIE As Object
On Error GoTo NoIE
Set MyIE = GetObject(, "InternetExplorer.Application")
MsgBox "IE found"
MyIE.Visible = True
MyIE.Navigate "https://www.tm.net.my"
Do Until MyIE.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop
'Put login name and password
Call Authenticate
Do Until MyIE.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop
'Copy something to the homepage from Excel
Call CopyAllAtOnce
Exit Sub
NoIE:
MsgBox "IE not found"
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|