S
Steve
How can I delete horizontal lines from a document?
The following doesn't find horizontal lines:
Dim sShape As Shape
' Delete all the shapes
For Each sShape In ActiveDocument.Shapes
sShape.Delete
Next sShape
This doesn't work because ils doesn't support the Delete method:
Dim ils As InlineShapes
For Each ils In ActiveDocument.InlineShapes
ils.Delete ' Fails. No Delete method
Next ils
Thanks
Steve
The following doesn't find horizontal lines:
Dim sShape As Shape
' Delete all the shapes
For Each sShape In ActiveDocument.Shapes
sShape.Delete
Next sShape
This doesn't work because ils doesn't support the Delete method:
Dim ils As InlineShapes
For Each ils In ActiveDocument.InlineShapes
ils.Delete ' Fails. No Delete method
Next ils
Thanks
Steve