IE automation after recent IE updates

Tulon

New Member
Joined
Dec 16, 2013
Messages
7
The recent updates to IE11 got rid of a bunch of useful stuff for VBA, like document.all and execScript. Is anyone else having issues as a result of the update?

For example, I had this line that worked on multiple versions of IE, including IE11 until the recent update:
Code:
IE.document.frames(0).document.RunButton.click
But it immediately stops working as soon as someone installs the update for IE11 and says "Access is denied." any time you try to do anything with ...frames.document... stuff. Does anyone have an alternative that might still work?

I did try
Code:
IE.document.frames(0).document.getElementByID("RunButton").click
but got the same result, as it still has frames.document.







If anyone else had issues with execScript no longer working, I found that if you had something like
Code:
IE.document.parentWindow.execScript("[jscript]", "JavaScript")
it usually seems to work if you switch it up to
Code:
IE.Navigate "javascript:[jscript]"
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

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