PDA

View Full Version : Userform Multiple WebBrowser issue Excel 2010



Poundland
08-16-2016, 06:40 AM
Hi Guys,

Fresh from solving the previous WebBrowser issue I have now encountered another.

On my Userform I have created two WebBrowser controls, code below;


WebBrowser1.Silent = True
WebBrowser2.Silent = True
Me.WebBrowser1.Navigate "http://www.supermarket.co.uk/food-prices.aspx"
Me.WebBrowser2.Navigate "http://www.bbc.co.uk/weather/2633912"

My issue is that upon Form Initialization WebBrowser2 loads the page correctly and is interactive, WebBrowser1 also loads the page but is frozen.

If I remove WebBrowser2 navigation code line then WebBrowser1 works as it should.

I have tried switching the code sequence round so 1 loads before 2, as above but still the same issue.

Some additional information that may be causing the issue, although not sure, is that WebBrowser2 is on the front page of a multipage form and is visible directly at load up, whereas WebBrowser1 is on a separate Page and the page needs to be selected to view the WebBrowser.

Any Ideas as to why this is happening?