Switch IE9 browser mode to IE7 at runtime in VBA

1

I want to switch the IE9 Browser mode to IE7 programmatically in VBA at runtime. I can engage the F12 develop tools and change it manually, but I want to automate this step in my code after I have opened my IE browser (defaulting to IE9).

hroman1234

Posted 2012-07-23T00:24:08.707

Reputation: 11

I don't know, but my guess is this is not allowed, because it would be a security risk. You might be able, however, to write a program that changes IE's settings to always use IE7 mode before starting IE. – Mr Lister – 2012-07-23T06:15:10.413

are you creating the web pages, or simply connection to them? If you are generating them, then adding <meta http-equiv="X-UA-Compatible" content="IE=7" /> to the header will force IE7 mode in IE8&9 – SeanC – 2012-07-23T16:07:31.027

No answers