L
LEU
I have a document with a lot of shapes in it. I have the following macro the
deletes only the lines. The problem is that it deletes all the lines. I need
help to fine-tune it to only delete the vertical lines.
Dim i As Long
For i = ActiveDocument.Range.ShapeRange.Count To 1 Step -1
If ActiveDocument.Range.ShapeRange(i).Type = msoLine Then
ActiveDocument.Range.ShapeRange(i).Delete
End If
Next
deletes only the lines. The problem is that it deletes all the lines. I need
help to fine-tune it to only delete the vertical lines.
Dim i As Long
For i = ActiveDocument.Range.ShapeRange.Count To 1 Step -1
If ActiveDocument.Range.ShapeRange(i).Type = msoLine Then
ActiveDocument.Range.ShapeRange(i).Delete
End If
Next