通過PPT軟件中的VBA來解決了,幾乎搜遍了所有的網(wǎng)站,最后終于找到了答案,將代碼給各位分享。
代碼如下:
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
另附方法二:
在PPT放映設(shè)置時把PPT設(shè)為“播放時不帶動畫”就可以達到同樣效果。