How to Use PowerPoint VBA to Toggle Show Without Animations
Question details
The user needs to standardise or toggle the "Show with animation" setting across multiple PowerPoint presentations using VBA without getting mixed results.

- Product
- PowerPoint
- Device & OS
- not provided
- Scenario
- Batch processing multiple PowerPoint presentations using VBA macros to modify their animation settings.
- Observed behavior
- Using a toggle command reverses each presentation's setting individually, resulting in inconsistent animation states when the files have mixed starting settings.
Before running a batch VBA script, ensure the Developer tab is enabled in your ribbon and make a backup copy of the folder containing your presentations to prevent accidental overwrites.
Explicitly Set Animation States for Batch Processing
Use explicit True or False values in your VBA macro to ensure all presentations in a folder end up with the exact same animation setting, regardless of their original states.
When processing a batch of presentations with mixed starting conditions, using a simple toggle function will invert each file's current setting. To achieve a uniform result across all files, you must assign an explicit boolean value to the ShowWithAnimation property.
Press Alt + F11 to open the Visual Basic for Applications (VBA) editor in PowerPoint.
Right-click on your presentation project in the Project Explorer, select 'Insert', and click 'Module'.
Within your batch processing loop, use the exact line `.SlideShowSettings.ShowWithAnimation = True` to enable animations for all files, or replace `True` with `False` to turn them all off.
Press F5 or click the Run button to execute the macro and apply the consistent setting to all presentations in your target folder.

Toggle the Setting for a Single Active Presentation
Use the 'Not' operator to reverse the animation setting of the currently active presentation.
Manage Presentation Animations with WPS Office VBA
WPS Office offers robust VBA support, allowing you to seamlessly run PowerPoint macros to manage slide show settings and batch process files effortlessly.
- 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your computer.
- 2. Open WPS Presentation: Launch WPS Presentation and open a new or existing document.
- 3. Access the Developer Tools: Navigate to the Tools tab and click on 'Developer' to access the VBA Editor.
- 4. Run Your Macro: Paste your slide show animation VBA code into the module and click Run to apply the changes.

Frequently Asked Questions
Why does toggling animations in batch create mixed results?
When using a toggle command (like 'Not'), the VBA macro simply reverses the existing state of each individual file. If your folder contains some presentations with animations turned on and others with them turned off, toggling will result in them swapping states, maintaining the inconsistency.
How do I ensure animations are turned off for every presentation in a folder?
Instead of toggling, you should explicitly set the property to False. Use `.SlideShowSettings.ShowWithAnimation = False` within your batch loop to force every file to hide animations, regardless of its original setting.
Can I use VBA to only turn animations on?
Yes. Simply use the explicit command `.SlideShowSettings.ShowWithAnimation = True` in your macro. This ensures that any presentation processed by the script will have animations enabled.
Does WPS Presentation support PowerPoint VBA macros?
Yes, WPS Office Pro and certain other versions include robust built-in VBA support, allowing you to run standard PowerPoint macros, including SlideShowSettings adjustments.




