Connect to already running instance of Internet Explorer

Tommeck37

New Member
Joined
Nov 12, 2014
Messages
49
Hello,

Can anyone help me out with connecting to already running instance of internet explorer. I have tried many codes posted in this forum and many others but all the codes in fact opened a new instance of IE.

What I am trying to do is to automate web based application "SalesForce" to create certain tasks in it.
I need to have a macro that binds to already logged in application and manipulate it by clicking specific buttons and writing specific data from Excle spreadsheet into the application.

Thank you for any directions.

Tommeck37
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
In the VBA editor go to Tools -> References and make sure that 'Microsoft Scripting Runtime' and 'Microsoft Internet Controls' are checked. Then use the following code to go through the IE windows and find whichever one you need. Note that the code will consider every tab a separate IE object.

Code:
Sub connectIE()
    Dim sWindows As New ShellWindows
    Dim IE As InternetExplorer
    
    For Each IE In sWindows
        MsgBox IE.LocationName
    Next
End Sub

change the MsgBox line to whatever you need
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top