Delete Curves

Hi

how can I creat a macro to delete all horizontal lines?

Thanks

Parents
  • Sub Delete_H_Lines()
    Dim sr As ShapeRange, s As Shape, h#
    ActiveDocument.BeginCommandGroup "Delete_H_Lines"
    Optimization = True
    ActivePage.Shapes.All.AddToSelection
    Set sr = ActiveSelectionRange
    For Each s In sr
    If s.SizeHeight <= 0.001 Then
    s.Delete
    End If
    Next s
    ActiveDocument.EndCommandGroup
    Optimization = False
    ActiveWindow.Refresh
    End Sub

Reply Children