|
Sub test()
Dim objShapes As Object
Dim slidecount As Byte, shapecount As Byte
slidecount = ActivePresentation.Slides.Count
For j = 1 To slidecount
With ActivePresentation.Slides(j)
shapecount = ActivePresentation.Slides(j).Shapes.Count
For i = 1 To shapecount
If .Shapes(i).Type = msoEmbeddedOLEObject Then
If .Shapes(i).OLEFormat.ProgID = "MSGraph.Chart.8" Then
Set objShapes = .Shapes(i).OLEFormat.Object
With objShapes.Application.DataSheet
For p = 2 To 7
.Cells(2, p).Value = p - 1
Next
End With
End If
End If
Next
End With
Next
End Sub |
|