Opening Internet explorer multiple sessions with VBA

Andreaxs

New Member
Joined
Jun 11, 2017
Messages
2
Hello everybody!
I'm new in this forum and i would like to know if somebody could help me.
I'm writing a Macro in VBA to interact with Internet explorer to open multiple sessions in internet explorer and log in into a site.
The problem is that when i use the createobject function i will be able to interact with every page opened but they are opened in the same session. Basically it opens 2 different windows not sessions in IE.

CreateObject("InternetExplorer.Application")

To try to solve the problem i tried to use the shell function to open IE in multiple sessions and i can.

Shell "C:\Program Files\Internet Explorer\iexplore.exe", -noframemerging

The problem here is that i don't know how to interact with IE. In which way can get that IE new session as object?

I think that is really strange there is no option in the creation object function to open a news session.

Anybody can help?

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
If you mean that you'd like to navigate to a URL in a separate tab within the same window, you'll need to include a flag when using the Navigate method. So, let's say that you've created an instance of Internet Explorer and assigned it to an object variable called IE, and that you've navigated to a URL. Now let's say you want to navigate to a second URL in a new tab within the same window, you would do it this way...

Code:
IE.navigate URL:="www.google.com", Flags:=CLng(2048)

Notice that the Flags argument must be passed as Long. You can find a list of available BrowserNavConstants in the following link...

https://msdn.microsoft.com/en-us/library/dd565688(VS.85).aspx

Hope this helps!


 
Upvote 0
Hello Dominic!
Thanks for your reply but i really mean that i would like to open more sessions of Internet explore like when you tipe alt+f+o. I need to login with many session in the same site like to login on outlook woth many different accounts.
Thats why i ask if anybody knows how to do it. Any idea?
Thanks
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,206
Members
453,022
Latest member
RobertV1609

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