PPT2010设置colorscheme会产生意外结果 [英] PPT2010 Setting colorscheme generates unexpected results

查看:107
本文介绍了PPT2010设置colorscheme会产生意外结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过vba为activepresentation添加一个新的colorscheme。

I want to add via vba a new colorscheme for the activepresentation.

我使用以下代码:

'删除所有有效计划

当ActivePresentation.ColorSchemes.Count = 1时,
    ActivePresentation.ColorSchemes(1).Delete

Wend

' delete all active schemes
While ActivePresentation.ColorSchemes.Count = 1
    ActivePresentation.ColorSchemes(1).Delete
Wend

'获取有效计划

设置cs2 = ActiveWindow.View .Slide.ColorScheme

   

    cs2.Colors(ppAccent1)= RGB(0,255,0)

    cs2.Colors(ppAccent2)= RGB(0,255,0)

    cs2.Colors(ppAccent3)= RGB(0,255,0)

    cs2.Colors(ppBackground)= RGB(0,255,0)

    cs2.Colors(ppFill)= RGB(0,255,0)

    cs2.Colors(ppForeground)= RGB(0,255,0)

    cs2.Colors(ppShadow)= RGB(0,0,255) 

    cs2.Colors(ppTitle)= RGB(0,0,255)

Set cs2 = ActiveWindow.View.Slide.ColorScheme
   
    cs2.Colors(ppAccent1) = RGB(0, 255, 0)
    cs2.Colors(ppAccent2) = RGB(0, 255, 0)
    cs2.Colors(ppAccent3) = RGB(0, 255, 0)
    cs2.Colors(ppBackground) = RGB(0, 255, 0)
    cs2.Colors(ppFill) = RGB(0, 255, 0)
    cs2.Colors(ppForeground) = RGB(0, 255, 0)
    cs2.Colors(ppShadow) = RGB(0, 0, 255) 
    cs2.Colors(ppTitle) = RGB(0, 0, 255)

设置newcs = ActivePresentation.ColorSchemes.Add(cs2)

Set newcs = ActivePresentation.ColorSchemes.Add(cs2)

Powerpoint后面显示的是menue而不是编程的颜色。

Powerpoint shows afterwards in the menue not the programmed colors.

我预计有2种蓝色和6种真绿色!!

I expected 2 blue and 6 true green colors !!

为什么着色是错误的?

用于地址的使用权限令人困惑 - 配置菜单例如显示accent1 .. accent6。 API使用其他定义 

The used indeces for adressing are confusing - the configuration menue for example shows accent1 .. accent6. The API uses other definitions 

是否有文档如何使用colorscheme?

Is there a documentation how to use the colorscheme?

   

   

问候

Wolfgang

推荐答案

嗨Wolfgang,

Hi Wolfgang,

感谢您发帖。

<< 是否有文档如何使用colorscheme?>>

<<Is there a documentation how to use the colorscheme?>>

我发现以下文章涉及到这个:

I found the following articles which involves about this:

http: //msdn.microsoft.com/en-us/library/ff744153.aspx

http://msdn.microsoft.com/en-us/library/ff746170.aspx

http://msdn.microsoft.com/en-us /library/ff745920.aspx

请查看您是否可以提供一些关于您的问题的提示。

Please see whether you can give some hint about your problem.

最好的问候,


这篇关于PPT2010设置colorscheme会产生意外结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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