I'm looking for a way to remove all the images in a document. I found this script...
Code:
Dim oILShp As InlineShape
For Each oILShp In ActiveDocument.InlineShapes
ActiveDocument.Range(oILShp.Range.Start, oILShp.Range.End).Text = "[IMAGE REMOVED]"
Next
The problem is that I also need to remove the line where the image used to be, so that the paragraphs before and after the image will not be divided by a blank new line. Simply deleting the "[IMAGE REMOVED]" replacement text won't do that, as it will leave a new line in that spot.
What's the best way to do this, please?
Thank you,
Alex