2014-03-24 64 views

回答

4

下面的代碼將改變在幻燈片2中的所有線條顏色爲紅色,2007年簡報:

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

加雷思謝謝它是有益的 –

相關問題