由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 请教如何在Powerpoint中使用Macros改变文字颜色
相关主题
新手请教一个关于VB macro的问题golang需要很多copy paste?
What syntax is this?(about macro)Re: [转载] Please Help on word 2000 with VBA !
一个哈希表问题VB 图像求助
Check if the sum of two integers in an integer array eqauls to the given number 字体问题
面试题 -算法?How to kill a window without title?
两道M软件大公司的最新面世算法题 (转载)缩小图象的程序
macro and std:: function name clashing请IT高手指点
师傅们,C++概念题,弟子有礼了a vba question. please help
相关话题的讨论汇总
话题: dim话题: powerpoint话题: integer话题: osld话题: oshp
进入Programming版参与讨论
1 (共1页)
s******t
发帖数: 100
1
我想find and replace某种颜色的文字,但是Powerpoint好像不直接提供这种功能。
我的原始文件有一部分黄色的文字,我想改成蓝色,其余的保持黑色。
我在网上搜索到一个例子,但是这是改变整个文件字体的颜色,入骨哦我想选择性的改
变某种颜色的字,该如和修改。我是计算机盲,逐个改,很花时间。
谢谢大家!
Sub ChangeFontColor()
' This will change the color of all PowerPoint text to the color you specify
in RGB below
' It won't affect text in charts, pasted graphics, groups, etc.
Dim R As Integer
Dim G As Integer
Dim B As Integer
R = 0
G = 121
B = 193
Dim oSld As Slide
Dim oShp As Shape
Dim oShapes As Shapes
For Each oSld In ActivePresentation.Slides
Set oShapes = oSld.Shapes
For Each oShp In oShapes
If oShp.HasTextFrame Then
If oShp.TextFrame.HasText Then
oShp.TextFrame.TextRange.Font.Color.RGB = RGB(R, G, B)
End If
End If
Next oShp
Next oSld
End Sub
1 (共1页)
进入Programming版参与讨论
相关主题
a vba question. please help面试题 -算法?
彩色图像创建和显示问题两道M软件大公司的最新面世算法题 (转载)
advanced c programming by examplemacro and std:: function name clashing
嵌套循环,层数可变 怎么实现师傅们,C++概念题,弟子有礼了
新手请教一个关于VB macro的问题golang需要很多copy paste?
What syntax is this?(about macro)Re: [转载] Please Help on word 2000 with VBA !
一个哈希表问题VB 图像求助
Check if the sum of two integers in an integer array eqauls to the given number 字体问题
相关话题的讨论汇总
话题: dim话题: powerpoint话题: integer话题: osld话题: oshp