How to Update PowerPoint Slide Content During a Live Presentation
Question details
The user needs to programmatically update slide text and content during a live PowerPoint presentation without encountering errors due to unavailable selection.

- Product
- Microsoft PowerPoint
- Device & OS
- not provided
- Scenario
- Running a PowerPoint add-in or code script to update slide shapes and text dynamically while in Slide Show view.
- Observed behavior
- Code that relies on the current selection fails because selection is unavailable during a live presentation, and sometimes the display does not refresh after updates are made.
Ensure you have access to the source code of your add-in or VBA macro, and verify whether your presentation is saved locally or on SharePoint/OneDrive for Microsoft 365.
Update Slide Content Programmatically Without Using Selection
Modify your code to reference shapes and text boxes directly by name or index instead of relying on the active selection object, which is disabled during a Slide Show.
During Slide Show view, text boxes and other slide content can generally be updated programmatically. However, code cannot depend on or alter the current selection because the selection object is unavailable when presenting.
In your code, define the specific slide and shape you want to update (e.g., Slide(1).Shapes("TextBox1")) rather than using ActiveWindow.Selection.
Assign the new text or properties directly to the targeted shape object's text frame.
If the changes do not immediately appear on screen during the Slide Show, programmatically switch to the next slide and immediately back to the current slide to force the slide engine to re-render the view.
If simply switching slides does not trigger a visual update, modify your code to insert a temporary hidden shape onto the slide right before switching to guarantee a complete refresh.

Enable 'Keep slides updated' in Microsoft 365
Use the built-in live synchronization feature if you are collaborating on a Microsoft 365 presentation stored in the cloud.
Try WPS Office for Your Presentation Needs
If you are looking for a lightweight, highly compatible alternative for creating and delivering presentations, WPS Office offers robust features and comprehensive support for Microsoft PowerPoint formats, including macros.

Frequently Asked Questions
Why does my macro fail when running in Slide Show view?
Macros that rely on the 'ActiveWindow.Selection' object often fail in Slide Show view because the user selection is disabled or unavailable while presenting. You must reference slide objects directly by their ID or name in your code.
How can I force a PowerPoint slide to refresh during a live presentation?
To force a refresh programmatically, you can write code to quickly navigate to the next slide and instantly back to the current one. Alternatively, adding a temporary shape to the slide before navigating can ensure the screen forces an update.
Is the 'Keep slides updated' feature available in Office 2019?
No, the 'Keep slides updated' feature is exclusive to supported Microsoft 365 subscriptions and requires the presentation to be stored on OneDrive or SharePoint.
Can I modify the underlying XML during a live PowerPoint presentation?
Modifying the underlying XML of a presentation while it is actively running in Slide Show view is not supported and can lead to unexpected behaviors or crashes. It is recommended to use the PowerPoint Object Model (shapes and text frames) instead.




