简体   繁体   English

向POTX文件添加自定义颜色

[英]Adding customized colors to POTX file

I know there already is an answer to the question here: 我知道这里的问题已经有了答案:

How to add new(customized) Theme colors to Powerpoint using VBA 如何使用VBA向Powerpoint添加新的(自定义)主题颜色

But it didn't work. 但这没有用。 And as I'm not allowed to comment there (not enough reputation) I'm sorry for opening up a new question. 而且由于我不允许在此处发表评论(声誉不足),因此我提出一个新问题深感抱歉。 (Dear admins - this isn't really clever in my opinion. Now we have two threads on the same thing, just because I'm not allowed to comment.) (尊敬的管理员-我认为这并不是很聪明。现在,由于不允许发表评论,我们在同一件事上有两个话题。)

Back to topic: 返回主题:

http://echosvoice.com/wp-content/uploads/pptfiles/customcolors.pdf http://echosvoice.com/wp-content/uploads/pptfiles/customcolors.pdf

I followed the instructions of Echo, recommended in the other thread, but it didn't work. 我遵循了在另一个线程中推荐的Echo的说明,但是没有用。 I have ppt2010 and tried with a THMX, a POTX and a PPTX. 我有ppt2010并尝试使用THMX,POTX和PPTX。 It's always the same. 总是一样的。 I rename the file by adding a .zip - I extract the ZIP - I copy Echo's example code and paste it right before /a:theme in theme1.xml file - I save it - I zip the whole folder - I delete the ZIP Extension - and it's corrupt. 我通过添加.zip重命名文件-解压缩ZIP-复制Echo的示例代码并将其粘贴在theme1.xml文件中的/ a:theme之前-保存-将整个文件夹压缩-删除ZIP扩展名-它已损坏。 When I doubleclick, PPT opens without a slide. 当我双击时,PPT打开而没有幻灯片。 When I got to "open" and choose the template, I get an error message. 当我“打开”并选择模板时,我收到一条错误消息。 "Repair" doesn't help. “修复”没有帮助。 - What am I doing wrong? - 我究竟做错了什么?

(Somewhere else I read, I have to add this to every theme-file, but it doesn't make a difference) (我读过的其他地方,我必须将其添加到每个主题文件中,但这没有什么区别)

Be kind to yourself. 善待自己。 Use 7-zip (free) to open the PPTX (it can open them directly w/o having to rename them, and won't corrupt the files). 使用7-zip(免费)打开PPTX(无需重命名即可直接打开它们,并且不会损坏文件)。

Alternatively, rename the file to zip, doubleclick to open the zip in Windows Explorer, drag any file you need to edit to the desktop, edit it there, drag it back into the still-open zip, then close the zip. 或者,将文件重命名为zip,双击以在Windows资源管理器中打开该zip,将需要编辑的任何文件拖到桌面上,在此处进行编辑,再将其拖回到仍打开的zip中,然后关闭该zip。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM