HTMLProject Property Example

This example checks the name of each member in the HTMLProjectItems collection for the loaded HTMLProject. If the name is Slide2, it then opens the generated HTML for that slide in the Microsoft Script Editor.

Dim i As Integer
With ActivePresentation.HTMLProject
    For i = 1 To .HTMLProjectItems.Count
        If .HTMLProjectItems(i).Name = "Slide2" Then
            .HTMLProjectItems(i).Open
        End If
    Next
End With