更改PPT字体代码

2023-04-14 15:18:10   文档大全网     [ 字体: ] [ 阅读: ]

#文档大全网# 导语】以下是®文档大全网的小编为您整理的《更改PPT字体代码》,欢迎阅读!
更改,字体,代码,PPT

更改字体

Sub test()

Dim i, j As Integer

For i = 1 To ActivePresentation.Slides.Count

For j = 1 To ActivePresentation.Slides(i).Shapes.Count

ActivePresentation.Slides(i).Shapes(j).TextFrame.TextRange.Font.Color = vbBlack

Next

Next

End Sub

全部删除动画

Sub removeALL()

Dim I As Integer: Dim J As Integer

Dim oActivePres As Object

Set oActivePres = ActivePresentation

With oActivePres

For I = 1 To .Slides.Count

If Val(Application.Version) < 10 Then

For J = 1 To .Slides(I).Shapes.Count

.Slides(I).Shapes(J).AnimationSettings.Animate = msoFalse

Next J

Else

For J = .Slides(I).TimeLine.MainSequence.Count To 1 Step -1

.Slides(I).TimeLine.MainSequence(J).Delete

Next J

End If

Next I

End With

Set oActivePres = Nothing

End Sub

本文来源:https://www.wddqxz.cn/59c82d762f60ddccda38a0ea.html

相关推荐