logo
search
Office Settings & Configuration

How to Sort PowerPoint Slides Alphabetically by Title

Algirdas JasaitisAlgirdas Jasaitis Oct 19, 2026 868 views

Question details

The user needs a method to arrange presentation slides in alphabetical order based on their title text.

How to Sort PowerPoint Slides Alphabetically by Title
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the VBA Editor

With your presentation open, press Alt + F11 on your keyboard to launch the Microsoft Visual Basic for Applications (VBA) editor.

2
Insert a New Module

In the VBA editor, click on 'Insert' in the top menu bar and select 'Module' to create a blank coding window.

3
Paste the Sorting Code

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.

4
Run the Macro

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.

Use a VBA Macro to Automatically Sort Slides
Beginner Warning: If you are completely unfamiliar with VBA coding, this method is prone to user error. Always test the macro on a temporary copy of your slideshow first.
Free Microsoft Office alternative

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. 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
  2. 2. Open Your Presentation: Launch WPS Presentation and open your existing .pptx file without worrying about format issues.
  3. 3. Organize Your Slides: Navigate to the View tab and use the intuitive Slide Sorter to arrange your slides just the way you want.
Fully compatible with Microsoft PowerPoint formats (.ppt and .pptx).Familiar, ribbon-based interface requires zero learning curve.Extremely lightweight software that opens large presentations quickly.Completely free to download and use for your daily office tasks.
microsoft office alternative - wps office

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.