How to Change Color of a Group of Shapes

F

Fox12

Hi, Gurus,

I have a Visio program. I created a group of line shapes. I want to
change the colors of all lines when a specific data goes beyond the range,
say, if value > 1000. How can I do that by using the group properties with
VBA?

Thanks so much in advance.

Fox12
 
J

JuneTheSecond

LineStyle property might be a help.
In this case, a style "Red" must be defined before execution.

If objShape.Shapes.Count > 1000 Then
objShape.LineStyle = "Red"
End If
 
Top