PowerPoint Slide ID and UUID: How to Read for Slide Linking
🔍 WiseChecker

PowerPoint Slide ID and UUID: How to Read for Slide Linking

When you need to link to a specific slide within a PowerPoint presentation or from an external source, the Slide ID and UUID are the internal identifiers that make that link work. The Slide ID is a numeric value assigned by PowerPoint when the slide is created, while the UUID is a globally unique identifier stored in the presentation file’s XML. This article explains what these identifiers are, where to find them, and how to use them for reliable slide linking.

Key Takeaways: Reading and Using PowerPoint Slide ID and UUID

  • Slide ID (numeric, e.g., 256): Used for internal hyperlinks and VBA references within the same presentation.
  • UUID (string, e.g., {A1B2C3D4-…}): Unique across all presentations; used for cross-presentation linking and OLE object references.
  • Viewing via XML or VBA: Open the PPTX as a ZIP and inspect the slide XML files, or use a simple VBA macro to display both values.

ADVERTISEMENT

Understanding Slide ID and UUID in PowerPoint

Every slide in a PowerPoint presentation has two internal identifiers that PowerPoint uses to track and link slides. The Slide ID is a sequential number that starts at 256 for the first slide and increments by one for each new slide. This number is stored in the presentation file and is used for internal hyperlinks, action settings, and VBA references that point to slides within the same file.

The UUID, or universally unique identifier, is a 128-bit string formatted as a series of hexadecimal digits separated by hyphens. PowerPoint generates a new UUID for each slide when the slide is created. The UUID remains unchanged even if the slide is copied, moved, or renamed. This makes the UUID the only reliable identifier for linking to a slide across different presentations or from external documents.

When Slide ID and UUID Change

The Slide ID can change if you copy a slide to a new presentation. PowerPoint reassigns the Slide ID based on the slide count in the destination presentation. The UUID, however, stays the same when you copy a slide within the same presentation or to a different presentation. If you delete a slide and then undo the deletion, PowerPoint restores the original UUID.

Where These Identifiers Are Stored

Both identifiers are stored in the slide XML files inside the PPTX container. Each slide has its own XML file located in the ppt/slides folder. The Slide ID is stored in the slideId attribute of the sldId element in the ppt/presentation.xml file. The UUID is stored in the id attribute of the cSld element in each slide’s XML file.

How to Read the Slide ID and UUID

You can read the Slide ID and UUID using two methods: by extracting the XML from the PPTX file or by running a VBA macro in PowerPoint. The XML method works without opening PowerPoint and is best for batch operations. The VBA method is faster when you already have the presentation open.

Method 1: Extracting from the PPTX XML

  1. Make a copy of your presentation file
    Right-click the PPTX file and select Copy. Right-click an empty area and select Paste. You will work on the copy to avoid damaging the original file.
  2. Change the file extension to .zip
    Right-click the copied file and select Rename. Change pptx to zip. Press Enter. Confirm the warning about the file becoming unusable.
  3. Open the ZIP and navigate to the slides folder
    Double-click the ZIP file. Open the ppt folder. Open the slides folder. You will see files named slide1.xml, slide2.xml, and so on.
  4. Open a slide XML file in a text editor
    Right-click slide1.xml and select Open With. Choose Notepad or any code editor.
  5. Find the UUID
    Search for the text cSld. You will find an attribute id with a value like {A1B2C3D4-E5F6-7890-ABCD-EF1234567890}. This is the UUID.
  6. Find the Slide ID
    Open the ppt/presentation.xml file from the ZIP. Search for sldId. The id attribute in that element is the Slide ID. For example, id="256" means Slide ID 256.

Method 2: Using a VBA Macro

  1. Open the presentation in PowerPoint
    Launch PowerPoint and open the file that contains the slides you want to inspect.
  2. Open the VBA editor
    Press Alt+F11 on your keyboard.
  3. Insert a new module
    In the menu, click Insert and then Module.
  4. Paste the macro code
    Copy and paste the following code into the module window:
    Sub ShowSlideIDs()
        Dim sld As Slide
        For Each sld In ActivePresentation.Slides
            Debug.Print "Slide " & sld.SlideIndex & ": ID=" & sld.SlideID & ", UUID=" & sld.SlideID
        Next sld
    End Sub

    Note: The VBA object model exposes only the SlideID property. To get the UUID, you must use the XML method.

  5. Run the macro
    Press F5 to run the macro. The Immediate window (Ctrl+G) will display each slide’s index and Slide ID.

ADVERTISEMENT

Common Issues When Using Slide IDs and UUIDs

Slide ID Changes After Copying Slides to Another Presentation

When you copy slides from one presentation to another, PowerPoint reassigns the Slide ID based on the slide count in the destination file. Any hyperlinks within the original presentation that used the old Slide ID will break. To avoid this, use UUID-based linking when creating cross-presentation references. UUIDs survive copy operations.

UUID Not Visible in VBA

The PowerPoint VBA object model does not expose the UUID directly. The Slide object’s SlideID property returns the numeric Slide ID, not the UUID. To read the UUID, you must extract it from the XML as described in Method 1. Some third-party add-ins can read the UUID, but the XML method is free and requires no additional software.

Hyperlinks Using Slide ID Break After Rearranging Slides

If you create a hyperlink using the Slide ID and then reorder slides, the link still works because the Slide ID is tied to the slide object, not its position. However, if you delete a slide and insert a new one in its place, the new slide gets a new Slide ID. The old hyperlink then points to a missing slide. To prevent this, use UUID-based linking in custom solutions.

Item Slide ID UUID
Format Numeric (e.g., 256) String with hyphens (e.g., {A1B2C3D4-…})
Uniqueness scope Within one presentation Globally unique across all presentations
Persistence when copied Changes Stays the same
Accessible via VBA Yes (Slide.SlideID) No (must use XML)
Used for internal hyperlinks Yes No (PowerPoint uses Slide ID for internal links)
Used for OLE or external references No Yes

Now you can locate the Slide ID and UUID for any slide in a PowerPoint presentation. Use the Slide ID for internal hyperlinks and VBA references within the same file. Use the UUID when you need a stable identifier that works across copies and different presentations. The XML extraction method gives you full access to both values without any third-party tools.

ADVERTISEMENT