I have been using the Followhyperlink command in VBA to open an Amazon web page. The code I was using is shown below
This code had some problems where excel at times hangs. I Googled this and have found others have seen the same type of problem using the Followhyperlink funtion. I was not able to find a solution for this using FireFox. I did find a IE funtion that was suppose to work however. The code for opening the Amazon Webpage in an IE window is shown below.
Question 1
This seems to work but IE opens in a small window. I have opened IE directly with the IE Icon, close and reopen it several times each time maximizing it before I close it. IE then "Remembers" to open maximized. Once however I run the above code IE opens in a small window again.
How do I get IE to open Maximized in using the above code?
Question 2
Each time the above code is run it opens a new IE window for the New Amazon Web Page. FireFox was opening new tabs each time its Excel code was exicuted. I got around this in FireFox by configuring FireFox to display the new Web Page in a Single Tab if the the page was activated by an External Link (like using Followhyperlink in Excel)
Is there a way to have the new Web Page Displayed in the same IE Window each time the above code is run?
Code:
MyAsin = Range("BM" & MyRow)
Hyper = "http://www.amazon.com/gp/offer-listing/" & MyAsin & "/ref=olp_prime_used?ie=UTF8&shipPromoFilter=1&sort=sip&me=&seller=&condition=all"
ActiveWorkbook.FollowHyperlink Address:=Hyper, NewWindow:=False
This code had some problems where excel at times hangs. I Googled this and have found others have seen the same type of problem using the Followhyperlink funtion. I was not able to find a solution for this using FireFox. I did find a IE funtion that was suppose to work however. The code for opening the Amazon Webpage in an IE window is shown below.
Code:
MyAsin = Range("BM" & MyRow)
Hyper = "http://www.amazon.com/gp/offer-listing/" & MyAsin & "/ref=olp_prime_used?ie=UTF8&shipPromoFilter=1&sort=sip&me=&seller=&condition=all"
Dim oIE As Object
Set oIE = CreateObject("InternetExplorer.Application")
oIE.navigate Hyper
oIE.Visible = True
Do While oIE.readyState <> 4
Loop
Set oIE = Nothing
Question 1
This seems to work but IE opens in a small window. I have opened IE directly with the IE Icon, close and reopen it several times each time maximizing it before I close it. IE then "Remembers" to open maximized. Once however I run the above code IE opens in a small window again.
How do I get IE to open Maximized in using the above code?
Question 2
Each time the above code is run it opens a new IE window for the New Amazon Web Page. FireFox was opening new tabs each time its Excel code was exicuted. I got around this in FireFox by configuring FireFox to display the new Web Page in a Single Tab if the the page was activated by an External Link (like using Followhyperlink in Excel)
Is there a way to have the new Web Page Displayed in the same IE Window each time the above code is run?