Loading Internet Explorer and setting window location.

petrillo

New Member
Joined
May 19, 2010
Messages
9
I have created an automatic google search for a list of items. I have a form that resides in the upper left hand corner of the screen.

I would like to have the Internet Explorer pop-up load in the bottom right if possible, or at least below the 250 height x 300 width form. The goal is to prevent employees from moving the IE window each time a new search pops up.

Additionally, is it possible to use the code to add a new tab for searching, rather than a completely new window?

Here is the code I use -


Set browser = CreateObject("InternetExplorer.Application")
browser.Navigate (SearchURL)
browser.StatusBar = False
browser.Toolbar = False
browser.Visible = True
browser.Resizable = True
browser.AddressBar = True



I went off a whim and tried "browser.Location" but couldn't get that to work.

Thanks in advance!

John
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
<font face=Courier New>    <SPAN style="color:#00007F">Set</SPAN> browser = CreateObject("InternetExplorer.Application")<br>    <SPAN style="color:#00007F">With</SPAN> browser<br>        .Navigate ("http://www.cnn.com/")<br>        .StatusBar = <SPAN style="color:#00007F">False</SPAN><br>        .Toolbar = <SPAN style="color:#00007F">False</SPAN><br>        .Visible = <SPAN style="color:#00007F">True</SPAN><br>        .Resizable = <SPAN style="color:#00007F">True</SPAN><br>        .AddressBar = <SPAN style="color:#00007F">True</SPAN><br><br>    <SPAN style="color:#007F00">' Position</SPAN><br>        .Width = 500<br>        .Height = 500<br>        .Top = 500<br>        .Left = 500<br>        <br>    <SPAN style="color:#007F00">'Open in new Tab (u need to pass the value 2048)</SPAN><br>        .Navigate2 "http://www.msn.com/", Flags:=navOpenNewForegroundTab<br>        <br>    <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN></FONT>


You may find these links helpful
http://vba-corner.livejournal.com/4623.html
http://msdn.microsoft.com/en-us/library/aa752043(v=VS.85).aspx
 
Last edited:
Upvote 0
Perfect!

The tab issue doesn't work, but I can do without it. Might be the version of IE (8).

Thanks for the help!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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