已经做好了的PPT怎么批量改字体颜色?

2024-12-04 23:05:33
推荐回答(2个)
回答1:

一次性修改所有ppt页面中字体的颜色和大小
有朋友问我如何一次性修改所有ppt页面中字体的颜色和大小,由于powerpoint没有现成的菜单,今天索性写了一个宏,水平有限,不足之处请大家指正!
Sub Macro1()
For i = 1 To ActiveWindow.Selection.SlideRange.SlideNumber
num = ActiveWindow.Selection.SlideRange.Shapes.Count
If i = ActiveWindow.Selection.SlideRange.SlideNumber Then
num = num - 1
End If
For j = 1 To num

ActiveWindow.View.GotoSlide Index:=i
aaa = ActiveWindow.Selection.SlideRange.Shapes(j).Name
If InStr(1, aaa, "text box") > 0 Then
ActiveWindow.Selection.SlideRange.Shapes(j).Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Font.Size = 20 '改成你想要的字体大小
ActiveWindow.Selection.TextRange.Font.Color.RGB = RGB(Red:=255, Green:=0, Blue:=0) '改成你想要的字体颜色
End If
If InStr(1, aaa, "Rectangle") > 0 Then
ActiveWindow.Selection.SlideRange.Shapes(j).Select
ActiveWindow.Selection.TextRange.Font.Size = 20 '改成你想要的字体大小
ActiveWindow.Selection.TextRange.Font.Color.RGB = RGB(Red:=255, Green:=0, Blue:=0) '改成你想要的字体颜色
End If
Next j
Next i
End Sub

回答2:

你知道改模板可以把字变为黑色。改不了符号可能:它是公式,鼠标右键点它-设置图片格式-图片-重新着色。2、它是文本框