View Single Post
 
Old 06-30-2020, 08:49 AM
alex100 alex100 is offline Windows 7 64bit Office 2016
Advanced Beginner
 
Join Date: May 2020
Posts: 79
alex100 is on a distinguished road
Default Remove image placeholders

In case Word is not able to retrieve an image when you paste an article from the web (because of a bad connection, for example), it will instead insert a placeholder on that location.

I am trying to remove these, and so far I have the code below, but it's far from working as it should...

Code:
For Each oShape In ActiveDocument.Shapes
    If oShape.AutoShapeType = msoShapeRectangle Then
        oShape.Delete
    End If
Next
It does remove some of the placeholders, but not all of them, as some will be left behind.

Then, how can I execute the code for the current selection only, instead of the entire document?

Thank you!

Alex
Reply With Quote