TextFrame2.Ruler property (PowerPoint)

Returns a Ruler2 object that represents the ruler for the specified text. Read-only.


expression. Ruler

expression An expression that returns a TextFrame2 object.

Return value



This example shows how to set a left-aligned tab stop at 2 inches (144 points) for the text in shape one on slide one in the active presentation.

Public Sub Ruler_Example() 
    Dim pptSlide As Slide 
    Set pptSlide = ActivePresentation.Slides(1) 
    pptSlide.Shapes(1).TextFrame2.Ruler.TabStops.Add ppTabStopLeft, 144 
End Sub

See also

TextFrame2 Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.