List Embedded and Linked Videos and Audio in PowerPoint
Question details
List the video and audio items in a PowerPoint presentation and identify whether they are linked or embedded.

- 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.
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.
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.
In PowerPoint, open the presentation and press Alt+F11 on Windows. Choose Insert > Module in the VBA editor.
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
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.

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.

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).




