How to Sort PowerPoint Slides Alphabetically by Title
Question details
The user needs a method to arrange presentation slides in alphabetical order based on their title text.

- Product
- PowerPoint
- Device & OS
- not provided
- Scenario
- Organizing a large presentation or glossary where slides must be ordered alphabetically by their titles (e.g., sorting titles like a, a-e, -ang, ch, d, -ful) for easier navigation.
- Observed behavior
- PowerPoint does not provide a native or built-in menu option to sort slides alphabetically. The user must rely on manual dragging or implement a custom VBA macro.
Make a duplicate copy of your presentation before running any VBA macros, as the sorting process cannot be easily undone and slides without titles may group unpredictably.
Use a VBA Macro to Automatically Sort Slides
Implement a custom VBA script that extracts the title of each slide, sorts them alphabetically, and reorders the slides automatically.
Since PowerPoint lacks a native sorting feature, a VBA macro is the most efficient method for presentations with dozens or hundreds of slides. The macro will read the text from the Title placeholder on each slide and rearrange the slide order accordingly. Note that slides without a title placeholder will be treated as having a blank title and will be moved to the beginning of the presentation.
With your presentation open, press Alt + F11 on your keyboard to launch the Microsoft Visual Basic for Applications (VBA) editor.
In the VBA editor, click on 'Insert' in the top menu bar and select 'Module' to create a blank coding window.
Copy the required VBA code (typically utilizing a loop to read tags and a basic sorting algorithm) and paste it into the blank module window.
Close the VBA editor to return to your presentation. Press Alt + F8 to open the Macro dialog box, select your newly created macro from the list, and click 'Run' to execute the alphabetical sort.

Manually Reorder Slides in Slide Sorter View
For beginners or users with shorter presentations, manually dragging slides is the safest alternative to using code.
Try WPS Office for Your Presentation Needs
While native alphabetical slide sorting is unavailable in both PowerPoint and most standard presentation software, WPS Office provides a highly compatible, lightweight, and free alternative to Microsoft Office. It seamlessly opens your .pptx files and offers an intuitive Slide Sorter view for easy organization.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Open Your Presentation: Launch WPS Presentation and open your existing .pptx file without worrying about format issues.
- 3. Organize Your Slides: Navigate to the View tab and use the intuitive Slide Sorter to arrange your slides just the way you want.

Frequently Asked Questions
Can I sort slides alphabetically in PowerPoint without using a VBA macro?
No, PowerPoint does not have a built-in 'Sort Alphabetically' feature for slides. The only way to achieve this without VBA is to open the Slide Sorter view and manually drag and drop the slides into alphabetical order.
Why did my macro put some slides at the very beginning?
If a slide does not contain a standard Title placeholder or if the title is left completely blank, the macro registers it as empty text. In alphabetical sorting, empty strings are placed before the letter 'A', moving those slides to the start of the presentation.
How do I save my presentation after adding a VBA macro?
If you want to keep the macro for future use, you must save your presentation as a PowerPoint Macro-Enabled Presentation (.pptm). Standard .pptx files cannot store VBA code, and the macro will be deleted upon closing.




