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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -