DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
FREEDOM251

Freedom251 › Blog › Microsoft 365

How to Shuffle Slides in PowerPoint: Manual Reordering and VBA Randomization

By Freedom251 Team · · 9 min read

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

PowerPoint does not have a built-in “Randomize slides” button. For a new, deliberate order, drag slide thumbnails into place. For a genuinely random order in which every slide appears once, make a copy of the presentation and use a VBA macro in the desktop application to shuffle the slides in place. PowerPoint for the web can rearrange slides manually, but it cannot run VBA macros.

What “shuffle slides” can mean

People use “shuffle” for two different jobs. Identifying which one you need prevents you from choosing a more complicated method than necessary.

As an Amazon Associate I earn from qualifying purchases.

Goal Best method Result What you need
Create a new fixed sequence Drag thumbnails manually The presentation keeps the new order every time it opens or plays PowerPoint for Microsoft 365, PowerPoint 2024, 2021, 2019 or 2016 on Windows or macOS, or PowerPoint for the web
Choose a different random sequence VBA macro that reorders the slides The deck is physically rearranged; starting the show then advances through the shuffled order without repeating a slide Desktop PowerPoint, a macro-enabled file, and permission to run macros
Keep the original deck unchanged Duplicate the file before either method The copy is shuffled while the source remains in its original order A second presentation file and a clear file name
Randomize navigation while the file stays structurally unchanged A VBA navigation macro Slides are selected at run time rather than permanently moved Desktop VBA and a macro designed for the particular presentation and show controls

Microsoft’s documented rearrangement workflow is intentionally simple: “In the pane on the left, select the thumbnail of the slide to be moved, then drag it to the new location.” The official support instructions describe moving slides, not generating a random sequence. Microsoft Q&A guidance points to VBA when true randomization is required, so treat macro behavior as community guidance rather than a complete compatibility specification.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Reorder slides manually

Manual reordering is the safest choice when you know the order you want. It does not require macros, does not change the file format, and works in the desktop and web versions listed by Microsoft for the rearrangement workflow.

Move one slide in Normal view

  1. Open the presentation and switch to Normal view. In the desktop application, this is usually available from the View tab. The slide thumbnails appear in a pane on the left.
  2. Click the thumbnail of the slide you want to move. Click once so the whole slide is selected rather than an object on the slide canvas.
  3. Press and hold the mouse button, then drag the thumbnail up or down. Watch for the insertion line between two thumbnails; that line marks the destination.
  4. Release the mouse button when the insertion line is in the desired position. PowerPoint renumbers the slides automatically.
  5. Start the slide show or move through the thumbnails to verify that the transition from the preceding slide still makes sense.

Move several slides together

Select a contiguous block by clicking the first thumbnail and then using Shift-click on the last one. For noncontiguous slides, use Ctrl-click on Windows or in the web application, and Command-click on macOS where supported. Keep the selection active, drag one of the selected thumbnails, and release it at the new insertion line. The selected slides move as a group and retain their internal order.

If a multi-selection behaves unexpectedly, click an empty area of the thumbnail pane to clear it and select the slides again. A common mistake is dragging while only one thumbnail is selected, which moves that slide and leaves the others behind.

Use Slide Sorter for a bird’s-eye view

  1. Open the View tab and choose Slide Sorter. PowerPoint displays the entire deck as a grid of thumbnails.
  2. Select one slide or a group of slides using the same click, Shift-click, Ctrl-click, or Command-click techniques.
  3. Drag the selection to its new position in the grid. A vertical insertion marker shows where PowerPoint will place it.
  4. Return to Normal view when the sequence is correct.

Slide Sorter is particularly useful for a short training deck, a presentation with many sections, or a deck in which you need to compare the visual rhythm of adjacent slides. It changes order only; it does not rewrite slide content, speaker notes, animations, or hyperlinks.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How to make a genuinely random order with VBA

A shuffle macro can select a random position for each slide and move it there. The resulting deck is a normal PowerPoint presentation whose slides have been rearranged. Because each slide occupies one position in the final deck, playing the presentation from the beginning advances through every slide once unless you deliberately repeat, skip, or branch during the show.

Before you run a macro

  • Save a copy. Reordering is easy to undo immediately, but a copy is the reliable way to preserve the original sequence.
  • Use a macro-enabled format. Save the working copy as .pptm if you need to keep the VBA project in the file. A regular .pptx cannot store macros.
  • Use desktop PowerPoint. PowerPoint for the web supports manual rearrangement but does not run VBA. Desktop installations on Windows and macOS have different macro-security settings and may expose different VBA behavior.
  • Check your organization’s policy. A work or school administrator may block macros, disable the Visual Basic editor, or require digitally signed projects.
  • Close other presentations or confirm the active file. The macro below acts on ActivePresentation, so make sure the copy you intend to shuffle is the active window.

Shuffle the slides in place

The following macro uses a Fisher–Yates-style pass: it processes the last slide, then the next-to-last, and so on, choosing a random destination for each position. Randomize seeds VBA’s random-number generator so separate runs normally produce different orders.

Sub ShuffleSlidesInPlace()
    Dim pres As Presentation
    Dim i As Long
    Dim j As Long

    Set pres = ActivePresentation
    If pres Is Nothing Then Exit Sub
    If pres.Slides.Count < 2 Then Exit Sub

    Randomize
    For i = pres.Slides.Count To 2 Step -1
        j = Int(Rnd() * i) + 1
        pres.Slides(i).MoveTo j
    Next i
End Sub

Install and run the macro

  1. Open the copied presentation in the desktop PowerPoint application.
  2. Save it as a macro-enabled presentation: choose File > Save As, select PowerPoint Macro-Enabled Presentation (*.pptm), and save.
  3. Open the Visual Basic editor. On Windows, Alt+F11 is the usual shortcut; you can also open it from the Developer tab if that tab is enabled. On macOS, open the Visual Basic editor from the Tools or Developer commands available in your build.
  4. In the editor, choose Insert > Module. A standard module, rather than a slide or presentation class module, is the simplest place for this procedure.
  5. Paste the code into the module.
  6. Return to PowerPoint, confirm that the copied deck is active, and run the procedure from the editor with the cursor inside ShuffleSlidesInPlace and the run command, commonly F5. You can also run it from PowerPoint’s Developer > Macros dialog.
  7. Inspect the thumbnails in Normal or Slide Sorter view. If the order is acceptable, save the file. If it is not, close without saving and reopen the copy, or use Undo immediately.

Macro warnings are expected in many installations. Enable content only when you trust the file and understand what the code does. Do not lower global security settings merely to run an unknown presentation; use a copy and, where your organization requires it, a signed or approved macro.

What “without repeating” means

The in-place macro produces one permutation of the existing slides. It does not duplicate a slide, so a standard linear slide show visits each slide once in that shuffled sequence. That guarantee applies to one run through the deck. It does not mean that two separate runs will never happen to produce the same order, and it does not control hyperlinks, custom shows, hidden slides, or audience-driven jumps.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Random navigation is a different design

Instead of moving slides, VBA can build a random sequence and call the slide-show view’s GotoSlide method. Microsoft Q&A examples use Randomize and GotoSlide for this type of approach and note that the macro must be run to shuffle. A navigation solution needs additional decisions: when the sequence is created, how the next action is triggered, whether hidden slides are eligible, and how the sequence is stored between jumps. Those details vary by presentation and by desktop platform. If your requirement is simply “show every slide once in a random order,” physically shuffling a copy is less fragile than adding event-driven navigation.

Keep the original order and restore it safely

Use separate files

The most dependable workflow is to retain an untouched master such as training-master.pptx and create a copy such as training-shuffled-2026-10-18.pptm. The date and purpose in the name make it clear which file can be edited or presented.

Record the original sequence

For a manual shuffle, write down the original slide-number sequence or export a PDF before changing the deck. For a macro shuffle, do not overwrite the master. If the presentation contains section breaks, custom shows, or hyperlinks that depend on slide numbers, check those relationships after reordering.

Undo versus reopening

Undo can reverse a recent move while the presentation remains open, but it is not a substitute for a backup after many edits or after closing the file. If the shuffled result is wrong, close it without saving and reopen the preserved copy. When the macro project itself is no longer needed, save a clean .pptx copy after verifying the order; saving that format removes the VBA project from the presentation file.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Compatibility, security, and file-format limits

Environment Manual drag-and-drop VBA shuffle Important qualification
PowerPoint for Microsoft 365 desktop Supported Supported when VBA is available and permitted Macro security may be controlled by an administrator
PowerPoint 2024, 2021, 2019 or 2016 desktop Supported Generally available on desktop, subject to the installation and security policy Windows and macOS builds can differ in menus and VBA behavior
PowerPoint for the web Supported for rearranging slides Not available for running VBA Download and use the desktop application for a macro workflow
Macro-enabled file (.pptm) Slides can still be moved manually Can retain the VBA project Recipients may see a macro warning
Standard file (.pptx) Slides can be moved manually Cannot retain VBA code Useful for distributing a finished, macro-free deck

Microsoft’s product documentation describes presentations as having a predefined sequence that users can reorder. It does not promise a universal randomization command across editions. Therefore, availability of the manual workflow should not be confused with availability of VBA, and a macro-enabled copy should be tested on the computer that will actually deliver the presentation.

Troubleshooting

The slides will not move

  • Make sure you are dragging the thumbnail in the left pane or Slide Sorter, not an object on the slide canvas.
  • Wait for the insertion line before releasing the mouse button.
  • Exit a text-editing state by pressing Esc, then select the thumbnail again.
  • If the file is read-only or opened from a location with restricted permissions, save an editable copy first.

Only one slide moved when several were selected

Clear the selection and select the group again. Use Shift-click for a continuous range; use Ctrl-click on Windows or Command-click on macOS for individual thumbnails. Start the drag from a selected thumbnail, not from an unselected one.

The macro is missing or will not run

  • Confirm that you are using the desktop application, not the web editor.
  • Check that the file was saved as .pptm and that the code is in a standard module.
  • Look for a security banner and enable content only if the file is trusted and your policy allows it.
  • If the Visual Basic editor or macros are disabled by an administrator, ask for an approved workflow rather than changing security settings yourself.
  • Verify that the intended presentation is active before running the procedure. The code operates on ActivePresentation.

The order changes, but the show behaves incorrectly

Reordering changes slide positions, so links or custom shows that refer to slide numbers may need review. Hidden slides remain governed by their hidden status, and a hyperlink can still jump directly to a particular slide instead of following the linear sequence. Test the presentation from the actual delivery mode, including any presenter-controlled navigation.

The macro produces an order I do not like

That is normal for a random result. Close without saving and run it again on the preserved copy. If you need a carefully designed sequence rather than chance, use manual drag-and-drop; randomness is not a substitute for instructional structure.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Which method should you choose?

  • Choose manual dragging when you need one known order, are working in a browser, cannot use macros, or must share a conventional .pptx file.
  • Choose the in-place VBA shuffle when you need a fresh random permutation, want every slide represented once in a linear show, and can work in desktop PowerPoint with a backed-up macro-enabled copy.
  • Choose a navigation macro only when the original slide structure must remain unchanged or the presentation needs run-time selection rules. Plan for more testing because navigation, hidden slides, hyperlinks, and user input all affect the result.

For most classroom, workshop, and practice decks, the practical sequence is: preserve the master, create a copy, decide whether the order should be deliberate or random, use manual reordering for a fixed result, and use the VBA shuffle only when randomness is the actual requirement.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Microsoft 365PowerPointPresentation Tipsslide managementVBA

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.