How to make Microsoft Web Browser object work in Excel 2016

空扰寡人 提交于 2019-12-18 06:14:16

问题


When I try to insert it, I constantly get the "Cannot insert object" error. It seems to be a known issue with former Excel versions, but I couldn't find any support for 2016.

Has anyone been able to make this work?

Here are screenshots:


回答1:


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)




回答2:


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))




回答3:


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




回答4:


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




回答5:


"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



来源:https://stackoverflow.com/questions/35024440/how-to-make-microsoft-web-browser-object-work-in-excel-2016

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