VBA PowerPoint 在线指南和如何录制宏 [英] VBA PowerPoint Online Guide and How to Record a Macro
本文介绍了VBA PowerPoint 在线指南和如何录制宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能向我推荐一个好的 PowerPoint VBA 在线指南?另外,有没有人有关于如何在 PowerPoint 中录制宏的建议?
Could anyone recommend to me a good online guide to PowerPoint VBA? Also, does anyone has advice on how to record a macro in PowerPoint?
推荐答案
Microsoft 从 PowerPoint 2007 中删除宏录制器.
Microsoft remove macro recorder from PowerPoint 2007.
要查看对象的结构,请在对象中使用 Watch (Shift +F9).
To view the struct of objects use Watch (Shift +F9) in object.
例如
dim ppt as powerpoint.Presentation
set ppt =activepresentation
在ppt中添加watch查看对象Presentation的结构
add watch to ppt to view the struct of object Presentation
否则
添加一个新的类模块
在类中声明
Private WithEvents ppt As PowerPoint.Application
在通用模块中使用
set x= new class1
现在在模块类中,您可以为您的演示文稿获取事件(在代码窗口的左侧组合中)
Now in module class you can get events for you presentation (in left combo up the code window)
布鲁诺·雷特
这篇关于VBA PowerPoint 在线指南和如何录制宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文