Last active
August 2, 2018 15:50
-
-
Save ateneva/2830d6e3a83c72b23ac036ff88b44f4b to your computer and use it in GitHub Desktop.
How do I show the slide IDs of multiple slides?
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
Sub Display_SlideIDs() | |
Dim i As Integer | |
Dim PPS As Slide | |
Dim p As Presentation | |
Set p = ActivePresentation | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
For Each PPS In p.Slides | |
If PPS.SlideIndex = 2 Or PPS.SlideIndex = 4 Or PPS.SlideIndex = 7 Or _ | |
PPS.SlideIndex = 8 Or PPS.SlideIndex = 9 Or PPS.SlideIndex = 10 Or PPS.SlideIndex = 11 Or _ | |
PPS.SlideIndex = 23 Or PPS.SlideIndex = 29 Or PPS.SlideIndex = 52 Then | |
MsgBox (PPS.Shapes.Title.TextFrame.TextRange & " = " & PPS.SlideID) | |
End If | |
Next PPS | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment