2014-03-24 2 views

답변

4

아래의 코드는 파워 포인트 2007 년에 빨간색으로 슬라이드 2의 모든 라인의 색상을 변경합니다 :

Public Sub ChangeLineColours() 

Dim shp As Shape 

For Each shp In ActivePresentation.Slides(2).Shapes '<~~ Change '2' to whichever slide you want to loop through 
    If shp.Type = msoLine Then 
     shp.Line.ForeColor.RGB = RGB(255, 0, 0) 
    End If 
Next shp 

End Sub 
+1

가레스 감사합니다 그것을 helpfull이다 –