Check whether the text frame contains text. To do so, check that the HasText property of the TextFrame object is msoTrue : Slide Text « PowerPoint « VBA / Excel / Access / Word
- VBA / Excel / Access / Word
- PowerPoint
- Slide Text
Check whether the text frame contains text. To do so, check that the HasText property of the TextFrame object is msoTrue
Sub shape()
With ActivePresentation.Slides(1).Shapes(1).TextFrame
If .HasText = msoTrue Then MsgBox .TextRange.Text
End With
End Sub
Related examples in the same category