logo
search
Others

How to List Embedded Images and Audio Files in PowerPoint

Steven ParkerSteven Parker Oct 21, 2026 868 views

Question details

The user needs to find a way to list, view, or extract all images and audio files that are embedded within a presentation.

How to List Embedded Images and Audio Files in PowerPoint
Product
Microsoft PowerPoint
Device & OS
Windows, macOS
Scenario
Auditing or managing media assets hidden inside a large presentation file without manually clicking through every single slide.
Observed behavior
PowerPoint packages embedded media internally with generic filenames, making it difficult to directly list them or extract them using their original file names.
Before you start

Before proceeding, create a backup copy of your presentation file to ensure you do not accidentally overwrite or corrupt your original document when changing file extensions or running macros.

Solution 1Recommended

Use a VBA Macro to List Media Shapes

Execute a VBA macro to automatically loop through all slides and print the internal names of every picture and media shape to the Immediate window.

This method is highly effective for quickly indexing all embedded images and audio objects directly within the application. Note that macro security settings must be temporarily adjusted to allow the script to run.

1
Open the VBA Editor

Open your presentation and press Alt + F11 on your keyboard to launch the Visual Basic for Applications (VBA) editor.

2
Insert a New Module

In the VBA editor, click on 'Insert' in the top menu bar and select 'Module' to create a blank script window.

3
Paste the Macro Code

Paste the following script into the module: Sub ListImagesAndSounds() Dim sld As Slide Dim shp As Shape For Each sld In ActivePresentation.Slides For Each shp In sld.Shapes If shp.Type = msoPicture Or shp.Type = msoMedia Then Debug.Print shp.Name End If Next shp Next sld End Sub

4
View the Immediate Window

Press Ctrl + G to open the Immediate window at the bottom of the editor. This is where the results of the 'Debug.Print' command will be displayed.

5
Run the Macro

Click anywhere inside the macro code and press F5 or click the 'Run' button. The Immediate window will populate with the names of all media objects found in the slides.

Use a VBA Macro to List Media Shapes
Macro Security Warning: Always review your macro security settings carefully. Only run VBA macros on trusted files, and consider deleting the macro once you have retrieved your list to maintain document security.

Efficiently Manage Presentation Media with WPS Office

WPS Presentation provides a highly compatible environment for running VBA macros and handling embedded assets. Whether you need to run advanced scripts to list media or simply want an intuitive platform to create, edit, and manage slide content, WPS Office handles it seamlessly.

  1. 1. Open WPS Presentation: Launch WPS Office and open your .pptx presentation file containing the media assets.
  2. 2. Access the Developer Tools: Navigate to the 'Developer' tab on the top ribbon and click on 'VBA Editor' to open the scripting environment.
  3. 3. Execute Your Script: Insert a new module, paste your media-listing VBA code, and run it to easily view your asset lists in the Immediate window.
  4. 4. Extract Media Directly: Alternatively, right-click on any image or audio file directly on a slide and choose 'Save as Picture' or 'Save Media as' to quickly export assets without renaming file extensions.
Fully compatible with Microsoft PowerPoint (.pptx) formats and embedded mediaRobust Developer tab functionality for easy VBA macro implementationLightweight, free, and designed for smooth performance on Windows and macOSIntuitive interface for easily saving out individual media assets directly from slides
microsoft office alternative - wps office

Frequently Asked Questions

Where does the list of media names appear after running the macro?

The script uses the 'Debug.Print' command, which sends the output to the Immediate window in the VBA editor. You can reveal this window by pressing Ctrl+G on Windows while the VBA editor is open.

Why do my extracted images have generic names like 'image1.png'?

When you embed images or audio files into a presentation, the software packages them internally and assigns them a generic sequential name. The original filenames from your computer are not retained in the presentation's internal directory.

Why won't my Mac extract the renamed ZIP file properly?

The built-in macOS Archive Utility sometimes fails to correctly unzip Office XML files that have been manually renamed to .zip. It is highly recommended to use a reliable alternative extraction utility, such as the free 'The Unarchiver' app, to properly unzip the presentation contents.

Is it safe to change my macro security settings?

It is safe as long as you are running VBA code that you wrote yourself or obtained from a trusted source. To maintain security, only lower your macro security settings temporarily for trusted documents, and avoid enabling macros on files downloaded from unknown internet sources.