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.
 

Some videos you may like

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Watch MrExcel Video

Forum statistics

Threads
1,127,550
Messages
5,625,455
Members
416,107
Latest member
AVaes

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
Top