Home > Mobile >  Change Feature_Browser_Emulation in VBA Excel for Internet Explorer
Change Feature_Browser_Emulation in VBA Excel for Internet Explorer

Time:12-29

I've been googling how to set my Feature_Browser_Emulation for my Internet Explorer using VBA but mostly i find VB.NET and other languages other than VBA. Can anyone help me with the syntax of doing it using VBA? Thanks in advance. This is regarding automating the Google Maps and the suggestion by Google is to do this Feature_Browser_Emulation, but most of the codes are not in VBA. I just want to remove the warning message by Google "Google Maps API doesn't support this browser" --something like it.

CodePudding user response:

I have more or less found an answer at least for my case. The value for emulating Edge is simply 0(ZERO) or any value not pertaining to old versions of IE according to the link below. At least it worked in my case. So I have successfully removed the error message "Google Maps API doesn't support this browser". One must, however, close and reopen Excel for this to work.

https://www.devhut.net/everything-you-never-wanted-to-know-about-the-access-webbrowser-control/

    Dim obj_Shell as Object
    Set obj_Shell = CreateObject("wscript.shell")
    
    obj_Shell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Internet 
    Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION\EXCEL.EXE", 0, 
    "REG_DWORD"
  • Related