To fill some shape with white color I use the following intructions:
However I'm unable to run something likeVB Code:
ActiveSheet.Shapes(i).Select Selection.ShapeRange.Fill.Solid Selection.ShapeRange.Fill.ForeColor.SchemeColor = 1
How can I write a condition on the color of a shape?VB Code:
ActiveSheet.Shapes(i).Select If Selection.ShapeRange.SchemeColor = 1 Then GoTo end Else Selection.ShapeRange.Fill.Solid Selection.ShapeRange.Fill.ForeColor.SchemeColor = 1 End If End:
