We Value Your Privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web. You can change your mind and change your consent choices at anytime by returning to this site.

Update Consent
Loading ...

How to Make the Next Slide Random in PowerPoint

Microsoft PowerPoint makes it simple to build everything from professional presentations to multimedia kiosk exhibits. However, even with all of the built-in features, PowerPoint does not have a random slide command. You must use Visual Basic to make the next slide random in PowerPoint. The simplest method is to create an action button that will run a macro that calls for a random slide. Likely applications for this type of macro include games and picture slideshows.

Loading ...
  1. Launch Microsoft PowerPoint from the "Start" menu.

  2. Open the slideshow you want to use with the random slide macro.

  3. Click on the Office symbol to open the menu.

  4. Click "PowerPoint Options" and navigate to the "Trust Center."

  5. Click the "Trust Center Settings" button, and click the radio button to "Disable all macros with notification." Click "OK" to return to the PowerPoint Options window.

  6. Click "Popular" and verify that "Show Developer Tab in the Ribbon" is enabled. Click "OK" to return to the presentation.

  7. Press "Alt" + "F11" to open the Visual Basic Editor.

  8. Click "Insert" and choose "Module."

  9. Copy and paste the code below into the editor window.

  10. Sub sort_rand()

  11. End Sub

  12. Press "Alt" + "Q" to save the macro and return to the presentation.

  13. Click the "Insert" tab and then the "Shapes" button.

  14. Click on the desired shape under the "Action Buttons" heading at the bottom of the drop-down menu.

  15. Click on the work area, and drag the shape to the desired size.

  16. Click the radio button beside "Run macro" in the dialogue box that appears, and select the "sort_rand" macro you created earlier. Click "OK."

  17. Press "Ctrl" + "C" with the button selected to copy it to the clipboard.

  18. Click on the next slide in the left pane.

  19. Press "Ctrl" + "V" to paste the button into the slide. Repeat this for each slide in the presentation.

  20. Press "F5" to begin the slideshow from the first slide.

  21. Click on the button you created to make the next slide a random slide. Every time you click on the button, the PowerPoint macro will select a random slide to display.

  22. Tip

    You can turn any object into a button by selecting it and clicking "Action" under the "Insert" tab.

Loading ...

Things You'll Need

  • Microsoft Office 2007 or later

About the Author

Kenrick Callwood has been involved in Internet marketing since 2007 and his work has appeared in numerous online publications. His main areas of expertise are psychology, travel and Internet marketing. He holds a bachelor's degree in psychology from California Polytechnic University.

Loading ...