Office Settings & Configuration

How to Update PowerPoint Slide Content During a Live Presentation

John WilsonJohn Wilson Nov 2, 2026 869 views

Question details

The user needs to programmatically update slide text and content during a live PowerPoint presentation without encountering errors due to unavailable selection.

How to Update PowerPoint Slide Content During a Live Presentation
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.
Before you start

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.

Solution 1Recommended

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.

1
Identify the target shape directly

In your code, define the specific slide and shape you want to update (e.g., Slide(1).Shapes("TextBox1")) rather than using ActiveWindow.Selection.

2
Apply content changes

Assign the new text or properties directly to the targeted shape object's text frame.

3
Force a display refresh

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.

4
Alternative refresh method

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.

Update Slide Content Programmatically Without Using Selection
Note on XML modifications: Changing the underlying XML directly during an active Slide Show is not supported using this method and may result in errors.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft PowerPoint (.pptx, .ppt) formats.Supports advanced animation, slide transitions, and VBA macros.Free and lightweight, ensuring smooth playback even on older devices.Familiar user interface requires no learning curve to get started.
QA img-9

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.