Me again, the ppt novice. Is there a way to create a list of the slide numbers and titles? I tried the summary slide function, but it gave me about seven slides. I just want a list that I can format in Word onto a single sheet.
Thanks,
Michael
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS PowerPoint and presentation apps » list of slides (2002 sp3)
You can create a macro for this:
– Create a new presentation.
– Switch to the Visual Basic Editor (Alt+F11)
– Select Insert | UserForm.
– The userform won’t be used, it’s only meant to set a reference to the Microsoft Forms library. You can remove the userform if you wish.
– Select Insert | Module.
– Copy the following code into the module:
Sub ListSlides()
Dim i As Integer
Dim strList As String
Dim d As New MSForms.DataObject
strList = “List of slides in ” & ActivePresentation.Name
For i = 1 To ActivePresentation.Slides.Count
strList = strList & vbCrLf & i & vbTab & _
ActivePresentation.Slides(i).Shapes(1).TextFrame.TextRange.Text
Next i
d.SetText strList
d.PutInClipboard
Set d = Nothing
MsgBox “The list of slides is on the clipboard, ” & _
“ready to be pasted.”, vbInformation
End Sub
– Switch back to PowerPoint.
– Activate the presentation you want to summarize.
– Press Alt+F8 to open the macro dialog.
– Specify that you want to see macros in all open presentations.
– Select ListSlides and click Run.
– You can now paste the list into a slide, into a Word document, or wherever you like.
Note: the code will fail or not do what you want if there are slides without a title. You could expand it to take that into account.
Hi,
In PPT 2007, they have removed the summary slide feature. I was wondering if this code could be re-modeled to create a summary slide in PPT2007?
I tried the code that Hans posted but it debugs on a missing object? (See the image attached)
PS: Unless code can be generated to automate this feature, I have a tweak…
1. Open the presentation in Outline view
2. Select all the text, right click and choose Collapse All Text
3. Select the titles of the slides (now in collapsed view)
4. On a new slide, right click in the text placeholder and paste.
All the slide titles should paste into the placeholder to generate a summary (agenda) slide.
Hans, that is so cool. I had never heard of a DataObject. One additional suggestion is to check to make sure there is a title on the slide. The code then becomes:
Sub ListSlides() Dim i As Integer Dim strList As String Dim d As New MSForms.DataObject strList = "List of slides in " & ActivePresentation.Name For i = 1 To ActivePresentation.Slides.Count With ActivePresentation.Slides(i) If .Shapes(1).HasTextFrame Then strList = strList & vbCrLf & i & vbTab & _ .Shapes(1).TextFrame.TextRange.Text End If End With Next i d.SetText strList d.PutInClipboard Set d = Nothing MsgBox "The list of slides is on the clipboard, " & _ "ready to be pasted.", vbInformation End Sub
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications