locked
How to apply bullet style to a textrange in powerpoint RRS feed

  • Question

  • In powerpoint i would like to apply number bullet style to a TextRange. In word i used to do this way

    Range..ListFormat.ApplyNumberDefault()

    How could i achieve the same in powerpoint.

    Tuesday, May 31, 2011 10:06 AM

Answers

  • I've not actally tried this but I believe you have to get to the text range within the shape and then apply a style setting to the paragraphs. Something like this ...

        Dim item As Microsoft.Office.Interop.PowerPoint.Shape
         For Each item In slide.Shapes
          If item.HasTextFrame = Microsoft.Office.Core.MsoTriState.msoTrue Then
            If item.TextFrame.HasText = Microsoft.Office.Core.MsoTriState.msoTrue Then
              item.TextFrame.TextRange.ParagraphFormat.Bullet.Style = Microsoft.Office.Interop.PowerPoint.PpNumberedBulletStyle.ppBulletArabicPlain
            End If
          End If
        Next
    
    

    Kind Regards, Rich ... http://greatcirclelearning.com
    • Marked as answer by Bruce Song Tuesday, June 21, 2011 1:48 PM
    Tuesday, May 31, 2011 11:04 AM