B
ben h
Hello, at the moment I'm doing the following to identify the shapes on
the active page as belonging to a particular master. I'm sure there must
be a simpler, more direct way?
Private Sub IdentifyShapes()
Const MasterName = "ActivityText"
Dim PageShapes As Visio.Shapes
Dim shp As Visio.Shape
Set PageShapes = Visio.ActivePage.Shapes
For Each shp In PageShapes
If shp.Master.Name = MasterName Then
'' this is a shape we like
End If
Next shp
End Sub
the active page as belonging to a particular master. I'm sure there must
be a simpler, more direct way?
Private Sub IdentifyShapes()
Const MasterName = "ActivityText"
Dim PageShapes As Visio.Shapes
Dim shp As Visio.Shape
Set PageShapes = Visio.ActivePage.Shapes
For Each shp In PageShapes
If shp.Master.Name = MasterName Then
'' this is a shape we like
End If
Next shp
End Sub