使用 VBA 读取 PowerPoint 动画效果
我一直在使用 PowerPoint VBA,并且掌握了大部分内容。
我正在努力解决的是读取每个对象的效果/动画设置。
我似乎能够通过Powerpoint.ActivePresentation.Slides(slide_id).TimeLine.MainSequence(seq_num)
得到很多我需要的东西,
让我困惑的是如何转换的数值>Powerpoint.ActivePresentation.Slides(slide_id).TimeLine.MainSequence(seq_num).EffectType
到效果(因此寻找效果值表或可能是 CONST 表)。
另外,如何阅读所有不同级别的效果(例如入口或强调等)确实令人困惑。更不用说我无法理解时间线(这似乎不是真正的时间线)。
任何人都可以向我指出任何讨论如何正确、完整地阅读效果和动画的好文章或文档吗?
I have been working with PowerPoint VBA, and have a grasp on most things.
What I am struggling with is reading the effect/animation settings for each object.
I seem to be able to get a lot of what I need through the Powerpoint.ActivePresentation.Slides(slide_id).TimeLine.MainSequence(seq_num)
What confuses me is how to convert the numeric value of Powerpoint.ActivePresentation.Slides(slide_id).TimeLine.MainSequence(seq_num).EffectType
to an effect (so looking for a table of values to effects or perhaps a CONST table).
Also, how to read in all the different level of effects (like entrance, or emphasis, etc) is really confusing. not to mention I cannot wrap my head around the timeline (which seems like it is not really a timeline).
Can anyone point me to any good articles or documentation that discusses how to read the effects and animations properly and fully?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您有一些特定的代码可以演示正在发生的情况与您所追求的情况,那么这可能更有助于确定您遇到的问题。据我所知,您正在寻找一种方法来查看 EffectType 值的常量,这是正确的吗?您是否尝试过
EffectInformation
对象?以下是一些关于动画的一般入门知识:
MSDN:
PowerPoint 2002 和 PowerPoint 2003
(第 1 部分)
PowerPoint 2002 和 PowerPoint 2003
(第 2 部分)
MVP 文章
PowerPoint 2002/2003 - 第一部分
(从来没有第二部分
已发布)
请注意,PowerPoint 2002 到 2010 使用新的动画引擎,因此所有/大多数 2002 示例将适用于更高版本。
If you have some specific code that can demonstrate what is happening versus what you're after, that may be more helpful in determining what is failing for you. As far as I can discern, you're looking for a way to see the constants for the EffectType values, is that correct? Have you tried the
EffectInformation
object?Here are some good primers on Animation in general:
MSDN:
PowerPoint 2002 and PowerPoint 2003
(Part 1)
PowerPoint 2002 and PowerPoint 2003
(Part 2)
MVP Article
PowerPoint 2002/2003 - Part I
(there never was a Part II
published)
Note that PowerPoint 2002 throught to 2010 uses the new Animation engine so all/most 2002 samples will be applicable to later versions.
有关各种效果值的枚举,请参阅:https:/ /learn.microsoft.com/en-us/office/vba/api/powerpoint(枚举)
For enumerations of the various effect values, see: https://learn.microsoft.com/en-us/office/vba/api/powerpoint(enumerations)