Created
November 22, 2016 08:22
-
-
Save ryo1kato/8e340b5c1c2cb5c54bfb90443045804f to your computer and use it in GitHub Desktop.
Progress Bar for PowerPoint slides
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 - 5, _ | |
| X * .PageSetup.SlideWidth / .Slides.Count, 5) | |
| s.Fill.ForeColor.RGB = RGB(127, 0, 0) | |
| s.Fill.BackColor.RGB = RGB(127, 0, 0) | |
| s.Line.ForeColor.RGB = RGB(127, 0, 0) | |
| 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