默认表和在 Powerpoint 文本框中定义不同级别

发布于 2024-12-12 18:22:16 字数 348 浏览 2 评论 0原文

我还有一些关于 powerpoint master 的问题,最好我想用 VBA 解决它们,但如果您有一个“点击解决方案”,我也会非常感激。

1) 如何定义自定义默认表,并且我不喜欢任何 Powerpoint 2010 建议,我想定义自己的默认表。我知道使用给定的样式之一作为默认样式很容易,但我不知道如何将我的布局放入可选择的样式中。

2)如何在文本框中设置不同级别的缩进和项目符号?我知道如何为整个占位符设置它们,但不知道如何访问 2 级以上......

非常感谢 seba

编辑:在 2)上我发现了如何通过 Levels() 设置缩进,但项目符号似乎通过 Paragraphs() 工作,这在创建母版时没有帮助

I have some more questions regarding powerpoint masters, preferably I would like to solve them in VBA, but if you have a "click solution" that would be highly appreciated, too.

1) How can I define custom default tables, and I do not like any of the Powerpoint 2010 suggestions, I would like to define my own default table. I know it is easy to use one of the given ones as default style, but I don't know how to get my layout into the choosable ones.

2) How can I set the indents and the bullets for the different levels in a textframe? I know how to set them for the whole placeholder, but not how to access level 2 onwards...

Thanks a lot
seba

Edit: on 2) I found out how to set the indents via Levels(), but the bullets seem to work via Paragraphs() which doesn't help when creating a master

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终遇你 2024-12-19 18:22:16

1) 您无法定义自定义表,或者至少没有它的 UI 或对象模型。您可以从演示文稿或模板中的另一张幻灯片复制预制表格,然后根据需要将其粘贴到现有幻灯片上,或者首先添加最接近的可用预制表格,然后您的代码可以对其进行修改以适应需要。

2) 使用形状的 .TextFrame.Ruler 对象来修改 .TabStops 和 .Levels 集合。 .Levels(x).FirstMargin 和 .Levels(x).LeftMargin 可让您获取/设置项目符号缩进。

在 PPT 2007 及更高版本中,X 可以采用 1 到 9 的值,在早期版本中可以采用 1 到 5 的值。

1) You can't define custom tables, or at least there's no UI or object model for it. You could copy a pre-made table in from another slide in a presentation or template and paste it onto an existing slide as needed or start by adding the closest available pre-made table then your code could modify it to suit.

2) Work with the shape's .TextFrame.Ruler object to modify the .TabStops and .Levels collections. .Levels(x).FirstMargin and .Levels(x).LeftMargin let you get/set the bullet indents.

X can take on values of 1 to 9 in PPT 2007 and up, 1 to 5 in earlier versions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文