Sub AddProgressBar() On Error Resume Next With ActivePresentation For X = 1 To .Slides.Count .Slides(X).Shapes("PB").Delete Set s = .Slides(X).Shapes.AddShape(msoShapeRectangle, _ 0, .PageSetup.SlideHeight - 12, _ X * .PageSetup.SlideWidth / .Slides.Count, 12) s.Fill.ForeColor.RGB = RGB(227, 28, 70) s.Name = "PB" Next X: End With End Sub
Sub Presentation_Progress_Marker() On Error Resume Next With ActivePresentation For N = 2 To .Slides.Count .Slides(N).Shapes(“Progress_Marker”).Delete Set S = .Slides(N).Shapes.AddShape(msoShapeRectangle, 0, 0, 0, N * .PageSetup.SlideWidth / .Slides.Count, 10) Call S.Fill.Solid S.Fill.ForeColor.RGB = RGB(227, 28, 70) S.Line.Visible = FalseS.Name = “Progress_Marker” Next N: End With End Sub