How to change only line shape color in vba powerpoint -
i have task make colour fill in powerpoint vba. when select lines , boxes want change lines , leave boxes colour. there way change private shapes?
the below code change line colours in slide 2 red in powerpoint 2007:
public sub changelinecolours() dim shp shape each shp in activepresentation.slides(2).shapes '<~~ change '2' whichever slide want loop through if shp.type = msoline shp.line.forecolor.rgb = rgb(255, 0, 0) end if next shp end sub
Comments
Post a Comment