Created
May 18, 2014 01:37
-
-
Save shinyzhu/1392699e278136a7cc64 to your computer and use it in GitHub Desktop.
Add a progress bar to each slide bottom of PowerPoint.
This file contains 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
Option Explicit | |
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(0, 145, 137) | |
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