VBA & Macro Problems

How to Use PowerPoint VBA to Toggle Show Without Animations

Algirdas JasaitisAlgirdas Jasaitis Oct 15, 2026 869 views

Question details

The user needs to standardise or toggle the "Show with animation" setting across multiple PowerPoint presentations using VBA without getting mixed results.

How to Use PowerPoint VBA to Toggle "Show Without Animations" Settings
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 you start

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.

Solution 1Recommended

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.

1
Open the VBA Editor

Press Alt + F11 to open the Visual Basic for Applications (VBA) editor in PowerPoint.

2
Insert a New Module

Right-click on your presentation project in the Project Explorer, select 'Insert', and click 'Module'.

3
Write the Explicit Code

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.

4
Run the Macro

Press F5 or click the Run button to execute the macro and apply the consistent setting to all presentations in your target folder.

Explicitly Set Animation States for Batch Processing
Create two macros for convenience: You can create two separate macro versions—one with False and one with True—allowing you to quickly run the script in either direction based on your needs.

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. 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your computer.
  2. 2. Open WPS Presentation: Launch WPS Presentation and open a new or existing document.
  3. 3. Access the Developer Tools: Navigate to the Tools tab and click on 'Developer' to access the VBA Editor.
  4. 4. Run Your Macro: Paste your slide show animation VBA code into the module and click Run to apply the changes.
Fully compatible with Microsoft PowerPoint VBA macros and .pptx formatsLightweight software with rapid load timesFree to use with a familiar, user-friendly interfaceBuilt-in tools for advanced batch processing
QA img-9

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.