M
Murat
Hello,
I have a page containing rectange and mid-arrow shapes. I want to delete
just mid-arrow shapes. I write a code:
Dim PageShapes As Visio.Shapes
Dim shp As Visio.Shape
Dim BittiMi As Boolean
Set PageShapes = Visio.ActiveDocument.Pages.Item("Page1").Shapes
While BittiMi = False
BittiMi = True
For Each shp In PageShapes
If shp.Master.Name = "Mid-arrow" Then
shp.Delete
End If
Next shp
For Each shp In PageShapes
If shp.Master.Name = "Mid-arrow" Then
BittiMi = False
Exit For
End If
Next shp
Wend
This code deletes some mid-arrow shapes but it generates a error: "Run-time
error '91': Object variable or With block variable not set".
for
[If shp.Master.Name = "Mid-arrow" Then ] row in that code.
Could you tell me how to solve that?
Thanks all..
I have a page containing rectange and mid-arrow shapes. I want to delete
just mid-arrow shapes. I write a code:
Dim PageShapes As Visio.Shapes
Dim shp As Visio.Shape
Dim BittiMi As Boolean
Set PageShapes = Visio.ActiveDocument.Pages.Item("Page1").Shapes
While BittiMi = False
BittiMi = True
For Each shp In PageShapes
If shp.Master.Name = "Mid-arrow" Then
shp.Delete
End If
Next shp
For Each shp In PageShapes
If shp.Master.Name = "Mid-arrow" Then
BittiMi = False
Exit For
End If
Next shp
Wend
This code deletes some mid-arrow shapes but it generates a error: "Run-time
error '91': Object variable or With block variable not set".
for
[If shp.Master.Name = "Mid-arrow" Then ] row in that code.
Could you tell me how to solve that?
Thanks all..