File Format & Compatibility

List Embedded and Linked Videos and Audio in PowerPoint

Nimra MalikNimra Malik Nov 13, 2026 868 views

Question details

List the video and audio items in a PowerPoint presentation and identify whether they are linked or embedded.

List Embedded and Linked Videos and Audio in PowerPoint
Product
Microsoft PowerPoint
Device & OS
not provided
Scenario
The user wants an inventory of presentation media, including source paths when available.
Observed behavior
Linked media can expose a source path, while embedded media may need to be identified by slide number and shape name because its original filename may not be available.
Before you start

Open the presentation in a desktop version of PowerPoint that supports VBA. Make sure macros are permitted by your organization’s security settings, and run code only from a source you trust.

Solution 1Recommended

Run a VBA macro to inventory PowerPoint media

Use this method to print each top-level video and audio shape’s slide number, name, and linked or embedded status.

The macro checks shapes directly on each slide. Linked items include their source paths; embedded items are identified by slide number and shape name. Original embedded filenames may not be available.

This macro does not inspect media nested inside grouped shapes or objects on slide masters.

1
Open the VBA editor

In PowerPoint, open the presentation and press Alt+F11 on Windows. Choose Insert > Module in the VBA editor.

2
Add the macro

Paste this code into the module: Sub ListMedia() Dim oSl As Slide Dim oSh As Shape For Each oSl In ActivePresentation.Slides For Each oSh In oSl.Shapes If oSh.Type = msoMedia Then If oSh.MediaType = ppMediaTypeMovie Or oSh.MediaType = ppMediaTypeSound Then Debug.Print "Slide " & CStr(oSl.SlideIndex) & vbTab & oSh.Name If oSh.MediaType = ppMediaTypeMovie Then Debug.Print vbTab & "Video" Else Debug.Print vbTab & "Audio" End If If oSh.MediaFormat.IsLinked Then Debug.Print vbTab & "Linked to: " & oSh.LinkFormat.SourceFullName Else Debug.Print vbTab & "Embedded" End If End If End If Next oSh Next oSl End Sub

3
Run and review the list

Place the cursor inside ListMedia and press F5. In the VBA editor, choose View > Immediate Window, or press Ctrl+G on Windows, to see the results.

Run a VBA macro to inventory PowerPoint media
Keeping the macro: If you want to retain the macro in the presentation, use File > Save As and choose PowerPoint Macro-Enabled Presentation (.pptm).
Free Microsoft Office alternative

Work with PowerPoint presentations in WPS Presentation

WPS Office is a free, lightweight alternative for opening and editing presentations in a familiar interface. Its PowerPoint format support makes it easy to move existing files into WPS; the PowerPoint VBA inventory procedure above still requires PowerPoint.

Open and edit presentations containing video or audioCompatible with Microsoft PowerPoint PPT and PPTX formatsFamiliar presentation controls for an easier transitionFree, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can I recover the original filename of an embedded video from the list?

Not necessarily. PowerPoint may not retain the original filename for embedded media, so the macro reports the slide number and shape name instead.

Where does the macro show linked media paths?

Open View > Immediate Window in the VBA editor. For a linked item, the output shows its path after “Linked to.”

Does the macro find media inside grouped shapes?

No. It checks shapes directly on each slide, not media nested inside groups. Inspect grouped objects separately or adapt the macro to traverse group items.

Do I need to save the presentation as a PPTM file?

Only if you want to keep the macro in the presentation. Use File > Save As and select PowerPoint Macro-Enabled Presentation (.pptm).