Class Hyperlinks (PowerPoint VBA)

A collection of all the Hyperlink objects on a slide or master. To use a Hyperlinks class variable it first needs to be instantiated, for example


Dim hyps as Hyperlinks
Set hyps = ActivePresentation.SlideMaster.Hyperlinks

Count

Returns the number of objects in the specified collection.


Dim lngCount As Long
lngCount = ActiveWindow.Selection.SlideRange(1).Hyperlinks.Count

Item

Returns a single Hyperlink object from the specified Hyperlinks collection.

Item (Index)

Index: The index number of the single Hyperlink object in the collection to be returned.


Dim hyp As Hyperlink
Set hyp = ActivePresentation.SlideMaster.Hyperlinks(Index:=1)