I
ingrid makkinje
Since I could not find a section for PowerPoint and VBA I drop my question
here.
I would like to change to fill color of one of the elements of a smartart
graphics,
Below listed is the code that I normally used for changing Autoshapes, but
this does not work anymore. I hope someone can help me with this.
Public Sub FillColor1()
'On Error GoTo Errorhandler
With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoTrue
.Fill.Solid
.Fill.ForeColor.RGB = RGB(143, 199, 255)
End With
ActiveWindow.BlackAndWhite = msoTrue
ActiveWindow.Selection.ShapeRange.BlackWhiteMode = msoBlackWhiteAutomatic
ActiveWindow.BlackAndWhite = msoFalse
Exit Sub
Errorhandler:
MsgBox "Nothing appropriate is currently selected", vbOKOnly, "User
Error"
End Sub
here.
I would like to change to fill color of one of the elements of a smartart
graphics,
Below listed is the code that I normally used for changing Autoshapes, but
this does not work anymore. I hope someone can help me with this.
Public Sub FillColor1()
'On Error GoTo Errorhandler
With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoTrue
.Fill.Solid
.Fill.ForeColor.RGB = RGB(143, 199, 255)
End With
ActiveWindow.BlackAndWhite = msoTrue
ActiveWindow.Selection.ShapeRange.BlackWhiteMode = msoBlackWhiteAutomatic
ActiveWindow.BlackAndWhite = msoFalse
Exit Sub
Errorhandler:
MsgBox "Nothing appropriate is currently selected", vbOKOnly, "User
Error"
End Sub