How to make Microsoft Web Browser object work in Excel 2016

一个人想着一个人 提交于 2019-11-29 11:02:52

This appears to be intentional behaviour from Excel 2013 onwards. From this article:

This issue occurs because some scriptable controls are made obsolete in Office 2013 for security reasons. This is by design, and these errors are expected.

There is a workaround posted in that article which involves editing the registry to make these controls work again.

(The KnowledgeBase article was originally linked from this Microsoft community thread from 2014)

GMoss

Fix ActiveX Controls (such as the Web Browser) in Excel (Office 2013-16)

Navigate to

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Wow6432Node\Microsoft\Office\16.0\Common\COM Compatibility\{8856F961-340A-11D0-A96B-00C04FD705A2}]

"Compatibility Flags"=dword:00000000

Navigate to in order to find the GUID of the control you are trying to fix (I was needing to fix the Web Browser control thus opened its GUID). reference

Open the desired GUID and set dword to 0 (vs. 1024 (400H))

Context of the solution: -Win 10 version 1803 / 64bit os -Excel O365 ClicktoRun version 1806 10228.20080 / 64bit

The registry is located at

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Microsoft\Office\16.0\Common\COM Compatibility\{8856F961-340A-11D0-A96B-00C04FD705A2}

And set the "Compatibility Flags" DWord to 0

Note: To reenable the blocking feature set Dword value back to "400"

Killbit option

This article also helped: Cannot insert certain scriptable ActiveX controls into Office 2013 documents

And this one: Security Settings for COM objects in Office

Corey DeFrancesco

Here is the file path for me: Win 10 x64 Build 1803 (17134.407)

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Common\COM Compatibility\{25336920-03F9-11CF-8FD0-00AA00686F13}

Hopefully, that helps someone

"Here is the file path for me: Win 10 x64 Build 1803 (17134.407) Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Common\COM Compatibility{25336920-03F9-11CF-8FD0-00AA00686F13}"

You need to set the compatibility flags to 0 for all the DWord entries in this Key not just the one mentioned above - then it works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!