Class RulerLevels (PowerPoint VBA)

A collection of all the RulerLevel objects on the specified ruler. To use a RulerLevels class variable it first needs to be instantiated, for example


Dim rls as RulerLevels
Set rls = ActiveWindow.RangeFromPoint.TextFrame.Ruler.Levels

Count

Returns the number of objects in the specified collection.


Dim lngCount As Long
lngCount = ActiveWindow.RangeFromPoint.TextFrame.Ruler.Levels.Count

Item

Returns a single RulerLevel object from the specified RulerLevels collection.

Item (Index)

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


Dim rll As RulerLevel
Set rll = ActivePresentation.Slides(1).Shapes(1).TextFrame.Ruler.Levels(Index:=1)