P
pallas
not hot on vba, is there a simpler way of doing this with variables?
ie coloring a bunch of shapes whose IDs are not consecutive without
selecting each in turn.
Public Sub changecolor()
Dim objshape As Visio.Shape
Set objshape = Visio.ActivePage.Shapes(2)
objshape.Cells("Fillforegnd") = 6
Set objshape = Visio.ActivePage.Shapes(6)
objshape.Cells("Fillforegnd") = 6
Set objshape = Visio.ActivePage.Shapes(33)
objshape.Cells("Fillforegnd") = 6
End Sub
ie coloring a bunch of shapes whose IDs are not consecutive without
selecting each in turn.
Public Sub changecolor()
Dim objshape As Visio.Shape
Set objshape = Visio.ActivePage.Shapes(2)
objshape.Cells("Fillforegnd") = 6
Set objshape = Visio.ActivePage.Shapes(6)
objshape.Cells("Fillforegnd") = 6
Set objshape = Visio.ActivePage.Shapes(33)
objshape.Cells("Fillforegnd") = 6
End Sub