如何在PP 2011中为MAC实现slideselectionchanged? [英] How to achieve slideselectionchanged in PP 2011 for MAC?

查看:113
本文介绍了如何在PP 2011中为MAC实现slideselectionchanged?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我想在从一张幻灯片移动到另一张幻灯片时显示消息框。



SlideSelectionChnaged在Windows上正常工作但在MAC上出错:

对象不会自动化事件。



我开始知道PP 2011的MAC不支持事件处理。



那么如何我可以通过手动代码实现吗?



谢谢

解决方案

检查一下:创建,运行,编辑或删除宏 - PowerPoint 2011 for Mac [ ^ ]



我建议你访问这个网站: PowerPoint / Mac与Windows中的VBA [ ^ ]。在那里你会发现...

引用:

(...)如果你需要一个方便的技巧编写适用于PC和Mac的代码:编译器开关。

 #If Mac then 
' 此处的代码仅在Mac上运行,但在PC上被忽略
#Else
' 此处的代码将在PC上运行但会被忽略在Mac上
#End if





有关详细信息,请参阅: PowerPoint开发者信息 [ ^ ]

Hi everyone !

I want to display messagebox while moving from one slide to another.

SlideSelectionChnaged is working fine on windows but giving error on MAC:
"Object does not source automation event".

I came to know that event handling is not supported in PP 2011 for MAC.

So how can I achieve that through manual code?

Thanks

解决方案

Check this: Create, run, edit, or delete a macro - PowerPoint 2011 for Mac[^]

I'd suggest you to visit this site: VBA in PowerPoint / Mac vs. Windows[^]. There you'll find ...

Quote:

(...) a handy trick if you need to write code that works on both PC and Mac: compiler switches.

#If Mac Then
' Code here will be run only on Macs but ignored on PCs
#Else
' Code here will be run on PCs but ignored on Macs
#End If



For further information, please see: PowerPoint Developer Information[^]


这篇关于如何在PP 2011中为MAC实现slideselectionchanged?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆