RackNerd Billboard Banner

How to Randomize Slides in PowerPoint Presentation

Do you ever wish you could show your PowerPoint slides in a random order? Maybe you’re conducting a quiz, running a classroom activity, or just want to make your presentation more dynamic and engaging. By default, Microsoft PowerPoint presents slides in the order you arrange them—but with a few simple tricks, you can randomize your slides for a truly unique presentation experience.

In this post, I’ll show you step-by-step methods to randomize slides in PowerPoint, whether you’re using VBA macros or a manual workaround that works on any version.


Why Randomize Slides?

Randomizing your slides can be useful for:

  • Classroom games or quizzes
  • Review sessions
  • Icebreaker activities
  • Avoiding predictable presentation order
  • Making content more interactive

Method 1: Using a VBA Macro to Randomize Slides

Note: Macros are available in PowerPoint for Windows, not on the web or Mac.

Step 1: Open PowerPoint and Enable Developer Tab

  1. Open your presentation in PowerPoint.
  2. Go to File > Options > Customize Ribbon.
  3. Check the box for Developer in the right column and click OK.

Step 2: Open the VBA Editor

  1. Click on the Developer tab.
  2. Select Visual Basic.

Step 3: Add the Macro Code

  1. In the VBA editor, go to Insert > Module.
  2. Copy and paste the following code:
    Sub RandomizeSlides()
    Dim i As Integer
    Dim j As Integer
    Dim temp As Slide

    For i = ActivePresentation.Slides.Count To 2 Step -1
    j = Int((i - 1) * Rnd) + 1
    ActivePresentation.Slides(i).MoveTo (j)
    Next i
    End Sub
  3. Close the VBA editor.

Step 4: Run the Macro

  1. Go back to PowerPoint.
  2. Click Developer > Macros.
  3. Select RandomizeSlides and click Run.

All your slides will now be randomized!


Method 2: Manual Randomization (No Macro Needed)

If you can’t use macros, you can still mix things up:

  1. In Slide Sorter view, manually drag and rearrange slides into a random order.
  2. Use a random number generator (like random.org) to assign a number to each slide, then sort slides according to these numbers.
  3. For quiz games, create hyperlinks from a main menu slide to slides in any order you want.

Tips & Notes

  • Save a backup copy of your presentation before running macros, just in case.
  • Macros may not be supported on all versions of PowerPoint or on Mac.
  • Hyperlinked menus are great for interactive, non-linear presentations.

Final Thoughts

Randomizing slides in PowerPoint can bring a new level of excitement and interactivity to your presentations. Whether you use macros or a manual approach, you can keep your audience engaged and guessing what’s next. Give it a try on your next quiz or training session!

Got questions or need more PowerPoint tips? Leave a comment below!

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
RackNerd Billboard Banner
© 2025 Computer Everywhere
Your Everyday Guide to the Digital World.
Terms of Service | Privacy Policy
Copy link