Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract data from Alt Text in PowerPoint presentation

Status
Not open for further replies.

only412c

MIS
Jan 29, 2003
32
0
0
US
Hi,

I am trying to extract the values or data within the ALT Text field in PowerPoint. Does anyone know how to code this in VBA?

This include pulling information from the Chart ALT Text fields as well.
 
One way:
Code:
[blue]Public Sub doit()
    Dim MySlide As Slide
    Dim myShape As Shape
    
    For Each MySlide In ActivePresentation.Slides
        For Each myShape In MySlide.Shapes
            Debug.Print MySlide.Name & ":" & myShape.Name & ":" & myShape.AlternativeText
        Next
    Next
End Sub[/blue]
 
Thanks strongm,

Some of the Alt Text do not pull such as in line text within bar charts. If the Alt Text is within the chart, how to handle the pull of these
 
I am not aware of 'in line' text within bar charts having any alternative text, but I am probably being dense.

Perhaps you can describe how you are creating such a thing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top