powerpoint 如何一次刪除全部自定義動畫
1.檢視\巨集;
2.輸入巨集名稱,例如:removeALL,再按確定;
3.在代碼編輯頁 Sub removeALL()和End Sub之間的空白處粘貼下列代碼,儲存或直接關閉代碼編輯視窗
4.回到簡報,按「檢視\巨集\執行」運行巨集即可。
代碼如下:
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
發佈留言