Skip to content

Instantly share code, notes, and snippets.

@blueboxes
Created October 13, 2021 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blueboxes/337bc11200fea425a8b0b66781eb1f94 to your computer and use it in GitHub Desktop.
Save blueboxes/337bc11200fea425a8b0b66781eb1f94 to your computer and use it in GitHub Desktop.
'https://www.howtogeek.com/709523/how-to-create-a-progress-bar-in-microsoft-powerpoint/
Sub ProgressBar()
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 - 2, _
X * .PageSetup.SlideWidth / .Slides.Count, 2)
s.Fill.ForeColor.RGB = RGB(135, 206, 235)
s.Line.Visible = False
s.Name = "PB"
Next X:
End With
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment