VBA - IE sessions on dual monitors

mtharnden

Board Regular
Joined
Aug 17, 2011
Messages
114
hello, simply put, i want VBA to open two seperate sessions of IE on two seperate displays.

i have not been able get the display part to work and not finding anything so i am not sure if i need seperate sessions but would like to do so to be safe (doing it manyally on the computers using i have to have seperate sessions of IE to do full screen on the two monitors).

current code: (this opens two IE windows on full screen on the default monitor)

Code:
Sub Test()

Dim objIE As Object

Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
objIE.Fullscreen = 1
objIE.navigate "http://www.google.com"

Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
objIE.Fullscreen = 1
objIE.navigate "http://www.yahoo.com"

End Sub
 
Once it hits Set objIE2 = CreateObject("InternetExplorer.Application")

objIE2 should have elements; at least things like FullName, which points to the executable, HWND, Height, Left, etc.

Sorry; I can't help with the other apps. Start a new thread possibly.
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,221,290
Messages
6,159,047
Members
451,534
Latest member
zooster

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