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:
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
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
it usually seems to work if you switch it up to
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
I did try
Code:
IE.document.frames(0).document.getElementByID("RunButton").click
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")
Code:
IE.Navigate "javascript:[jscript]"