如何用VC读写ppt文件中的Excel表
1个回答
推荐于2016-07-18 · 知道合伙人数码行家
huanglenzhi
知道合伙人数码行家
向TA提问 私信TA
知道合伙人数码行家
采纳数:117538
获赞数:517184
长期从事计算机组装,维护,网络组建及管理。对计算机硬件、操作系统安装、典型网络设备具有详细认知。
向TA提问 私信TA
关注
展开全部
Each Shape that represents an OLE object contains a OLEFormat object. The actions an OLE object can perform are contained in the ObjectVerbs collection, which is a child of the OLEFormat object. For example, the following code returns the verbs available for the specified OLE object:
Dim intCount As Integer
With ActivePresentation.Slides(5).Shapes("AVI File") _
.OLEFormat.ObjectVerbs
For intCount = 1 To .Count
Debug.Print intCount & " " & .Item(intCount)
Next
End With
To request that an OLE object perform one of its actions, use the DoVerb method.
To specify that the OLE object perform one of its actions when the user clicks or moves the mouse over it during a presentation, set the Action property of the ActionSettings object to ppActionOLEVerb, and the ActionVerb property to the action you want the object to perform. For example, the following code sets the selected OLE object to play when the user moves the mouse over it during a presentation. This example assumes that the OLE object exposes a verb named "Play".
With ActivePresentation.Slides(5).Shapes("AVI File") _
.ActionSettings.Item(ppMouseOver)
.Action = ppActionOLEVerb
.ActionVerb = "Play"
End With
Dim intCount As Integer
With ActivePresentation.Slides(5).Shapes("AVI File") _
.OLEFormat.ObjectVerbs
For intCount = 1 To .Count
Debug.Print intCount & " " & .Item(intCount)
Next
End With
To request that an OLE object perform one of its actions, use the DoVerb method.
To specify that the OLE object perform one of its actions when the user clicks or moves the mouse over it during a presentation, set the Action property of the ActionSettings object to ppActionOLEVerb, and the ActionVerb property to the action you want the object to perform. For example, the following code sets the selected OLE object to play when the user moves the mouse over it during a presentation. This example assumes that the OLE object exposes a verb named "Play".
With ActivePresentation.Slides(5).Shapes("AVI File") _
.ActionSettings.Item(ppMouseOver)
.Action = ppActionOLEVerb
.ActionVerb = "Play"
End With
博思aippt
2024-07-20 广告
2024-07-20 广告
作为深圳市博思云创科技有限公司的工作人员,对于Word文档生成PPT的操作,我们有以下建议:1. 使用另存为功能:在Word中编辑完文档后,点击文件->另存为,选择PowerPoint演示文稿(*.pptx)格式,即可将文档内容转换为PPT...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询