Browser.Document.frames works on one computer on another not

Tegenfeldt

New Member
Joined
Aug 6, 2013
Messages
13
Hi,

I have an Excel VBA tha works on one computer but gives an error on other computers.

This is the code I use:
HTML:
Set Browser = New InternetExplorer
Browser.navigate "http://core.purus.se/PurusWeb/common/frameset.aspx?Profile=Sweden&NamedPath=Golvbrunnar"
Do While Browser.Busy: DoEvents: Loop: Do Until Browser.readyState = READYSTATE_COMPLETE: DoEvents: Loop
Sleep 100
Browser.Visible = True
Set Document = Browser.Document.frames("Main").Document
Set htmlColl = Document.getElementsByTagName("a")

And this is the error message: "... -2147352319 (80020101) ... 'frames' in object 'JScriptTypeInfo' ..."

I get the error on the row: "Set Document...."

The computer it works on has WindowsVista 32-bit, InternetExplorer 9 and MS Office 2007.
The computer that gets the error has Windows7 64-bit, InternetExplorer 11 nd MS Office 2010.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,214,821
Messages
6,121,755
Members
449,049
Latest member
excelknuckles

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