Article ID: 165903
Article Last Modified on 10/11/2006
Sub ToggleBullets()
On Error Resume Next
Dim lSlideNum As Long
Dim oShape As Shape
' Get current slide number.
Err.Clear
lSlideNum = ActiveWindow.Selection.SlideRange.SlideNumber
' Check if error occurred getting the slide number.
If Err.Number <> 0 Then
MsgBox Err.Description, vbExclamation
End
End If
' Find the body placeholder on the slide.
For Each oShape In ActivePresentation.Slides(lSlideNum).Shapes
' Check if the shape is a placeholder.
If oShape.Type = msoPlaceholder Then
' Check if placeholder is the body placeholder.
If oShape.PlaceholderFormat.Type = ppPlaceholderBody Then
' Make the bullet visible if not visible. If
' some lines have the bullets turned on, leave the
' body alone.
With oShape.TextFrame.TextRange.ParagraphFormat.Bullet
If .Visible = msoTrue Then
.Visible = msoFalse
Else
.Visible = msoTrue
End If
End With
End If
End If
Next oShape
End Sub
176476 OFF: Office Assistant Not Answering Visual Basic Questions
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 8.00 ppt8 vba vbe ppt8.0 macppt
Keywords: kbcode kbdtacode kbhowto kbmacro kbprogramming KB165903