如何使用vba获取幻灯片尺寸?
我正在做一个项目。我想知道“我的文本框是否超出幻灯片范围?” 。如果是,则显示错误消息。
所以我的逻辑是,如果我找到幻灯片的尺寸,那么我将在 IF...Else 条件下使用它,例如:
If textbox_position < slide_dimension then
#Error
end if
如果您有任何其他想法,请告诉我。
谢谢
I am working on one project. In which i want to find out " Is my textbox going out of slide or not?" . If yes then show error msg.
so my logic is if i found the dimension of the slide then i will use it in IF...Else condition like :
If textbox_position < slide_dimension then
#Error
end if
If you have any other idea then please tell me.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
演示文稿的 .PageSetup.SlideWidth 和 .SlideHeight 属性将为您提供幻灯片的尺寸(以磅为单位)。
你的函数需要做类似的事情(从头顶到空中......):
The presentation's .PageSetup.SlideWidth and .SlideHeight properties will give you the dimensions of the slide in points.
Your function would need to do something like (off top of head and out of the air ..):
为什么不使用 PowerPoint 的占位符来制作此内容?例如:
您可以调用此子程序并传递参数
IndexOfSlide(包含多个幻灯片)和 txt(包含要创建的文本)。
Why you not use a placeholders of PowerPoint to make this? for example:
You can call this sub and pass parameters
IndexOfSlide with a number of slide and txt with a text to create.