How to Shuffle PowerPoint Answer Choices During a Slideshow
Question details
A user needs to randomize the positions of four answer options on a slide whenever a student selects an incorrect answer during an interactive vocabulary quiz.

- Product
- PowerPoint
- Device & OS
- not provided
- Scenario
- Creating an interactive, self-grading vocabulary quiz presentation.
- Observed behavior
- The user requires answer shapes to change locations dynamically upon clicking, but PowerPoint lacks a built-in feature to shuffle slide objects automatically.
Because PowerPoint does not have a native feature to shuffle objects during a presentation, you must enable the Developer tab to use VBA macros and ensure your file is saved as a Macro-Enabled Presentation (.pptm).
Create a Custom VBA Macro to Swap Shape Positions
Write a VBA script to identify your answer shapes, record their current coordinates, and randomly reassign them when triggered by a click.
Since PowerPoint lacks a built-in shuffle button for objects during a slideshow, VBA (Visual Basic for Applications) is the standard workaround. The macro will retrieve the 'Top' and 'Left' properties of the shapes and swap them dynamically.
Keep in mind that macros must be enabled in the Trust Center on any computer where this presentation will be played for the interactive quiz to function properly.
Go to File > Options > Customize Ribbon. In the right pane, check the box for 'Developer' and click OK.
Click the Developer tab on the ribbon and select 'Visual Basic' to open the VBA editor.
Right-click your presentation project in the left pane, select Insert > Module, and paste a custom shape-swapping script into the window.
Return to your slide, click the incorrect answer shape, go to Insert > Action, select 'Run macro', and choose your shuffling script from the dropdown menu.

Install a Third-Party Quiz Add-in
Utilize specialized educational add-ins that handle quiz logic and answer shuffling natively without requiring manual VBA coding.
Create Interactive Presentations with WPS Office
WPS Presentation provides robust support for VBA macros, allowing you to create interactive quizzes and automate shape shuffling seamlessly. It is fully compatible with Microsoft PowerPoint formats, making educational content creation both free and highly customizable.
- 1. Open Your Presentation in WPS: Launch WPS Presentation and open your quiz file.
- 2. Access the Developer Tools: Navigate to the Developer tab. If it is not visible, enable it via the settings menu.
- 3. Add Your Shuffling Macro: Click 'Visual Basic' to insert your VBA script that randomizes shape coordinates.
- 4. Assign Actions to Shapes: Select an answer shape, go to the Insert tab, click 'Action Settings', and choose 'Run Macro'.
- 5. Save as Macro-Enabled: Save your document as a .pptm file to preserve the interactive VBA code.

Frequently Asked Questions
Can I shuffle PowerPoint slides automatically without VBA?
You can shuffle entire slides using simpler macros or third-party add-ins, but shuffling individual objects or text boxes within a single slide requires custom VBA coding or a dedicated quiz add-in.
Why aren't my answer shapes moving when clicked?
You may have forgotten to assign the macro to the shape's click action. Ensure you select the shape, go to Insert > Action, and set 'Run macro' to your shuffle script. Also, check that macros are enabled in your Trust Center settings.
Will my customized VBA quiz work on other computers?
It will only work if the presentation is opened on a desktop version of PowerPoint or WPS Office that supports VBA macros, and the host computer has macro execution enabled. It will not work on web versions or mobile apps.
How do I find the names of the shapes on my slide for the macro?
Open the Selection Pane by going to Home > Arrange > Selection Pane. This panel lists every object on your current slide, allowing you to view or rename shapes so they perfectly match your VBA code references.




