Readystate Error

dgs2001

Board Regular
Joined
Apr 1, 2007
Messages
139
Hi all

I have an automation code which works fine with excel and ie7, however when trying with ie8 I get an error.
Code:
Set ie = CreateObject("InternetExplorer.Application")
 strURL ="http://www.racingpost.com"   
    
    With ie
        .Visible = True
        .navigate strURL
        Do Until (.ReadyState = 4 And Not .Busy): DoEvents: Loop

'''Rest of code here '''

I get an "Automation Error Interface Unknown" on the
Code:
 Do Until(.ReadyState = 4 and not .Busy)

It would seem that "ReadyState" is the problem.

Please help with any Ideas

Thanks Duncan
 
Last edited:

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
OK Update

I have just been playing with Internet Settings and discovered that If I tick "Enable Protected Mode " then harmony is restored.

Happy Days

I hope this helps somebody else one day. and If anybody would care to explain why this makes a difference then that would be good too!!

Duncan
 
Upvote 0
I hope this helps somebody else one day. and If anybody would care to explain why this makes a difference then that would be good too!!
Thanks a lot Duncan,

I was installing a tool of mine at a customer site, and faced this error, your post helped me quickly fix the error :)
Thanks a lot Man!

Youssef.
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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