Hi AlmostFriday,
Quote:
I tried the code, but it still deletes the images
|
That's odd - it should only delete Word's own autoshape objects. Of course, if the pictures are in textboxes, they'd get deleted. Are you sure you haven't got some other code in there?
Here's an alternative routine you might try:
Code:
Dim Shp As Shape
For Each Shp In ActiveDocument.Shapes
With Shp
If .TextFrame.TextRange.InlineShapes.Count = 0 And _
.Type <> msoLinkedPicture And .Type <> msoPicture Then .Delete
End With
Next