如何使用vba在powerpoint中查找图表(图表)?

时间:2012-01-25 10:25:07

标签: vba powerpoint

我只想让代码或属性使用宏(vba)在powerpoint幻灯片中查找图表。

感谢

1 个答案:

答案 0 :(得分:1)

查找图表的一种方法是

Sub EachSlides()
'developer by Bruno Leite  
'http://officevb.com  
Dim sld As Slide
Dim i As Integer

   For Each sld In ActivePresentation.Slides
           For i = 1 To sld.Shapes.Placeholders.Count
                      'select the placeholder
                      sld.Shapes.Placeholders(i).Select msoCTrue
           Next i
   Next sld

End Sub