Shapes.AddOLEObject method not working in PowerPoint 2013 (32bit and 64bit)?

六月ゝ 毕业季﹏ 提交于 2019-12-10 22:46:17

问题


I am using the following code to add web browser control to PowerPoint slide,

Set oShp = oSld.Shapes.AddOLEObject(Left:=100, Top:=100, Width:=200, Height:=300, Classname:="Shell.Explorer", Link:=msoFalse)

The above code works fine in all PowerPoint versions except PowerPoint 2013 (32bit and 64bit). I get the following error message,

In PowerPoint 2010 (32bit and 64bit) the web browser control is added but the control is black until viewing it in Slide Show. Then it gets refreshed.

How to fix this?


回答1:


You are seeing the error because Web Browser Control are made obsolete in Office 2013 for security reasons.

There is a workaround HOWEVER, it will put your machines at risk of vulnerability attacks

http://support.microsoft.com/kb/2793374



来源:https://stackoverflow.com/questions/27668344/shapes-addoleobject-method-not-working-in-powerpoint-2013-32bit-and-64bit

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